<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from ... core . properties import abstract <EOL> from ... core . properties import Bool , Int , Float , String , Color , Instance , Enum , Auto , List , Either <EOL> from ... model import Model <EOL> from ... core . enums import FontStyle , TextAlign , DateFormat , RoundingFunction , NumeralLanguage <EOL> from . . sources import DataSource <EOL> from . widget import Widget <EOL> @ abstract <EOL> class CellFormatter ( Model ) : <EOL> """<STR_LIT>""" <EOL> @ abstract <EOL> class CellEditor ( Model ) : <EOL> """<STR_LIT>""" <EOL> class StringFormatter ( CellFormatter ) : <EOL> """<STR_LIT>""" <EOL> font_style = Enum ( FontStyle , default = "<STR_LIT>" , help = """<STR_LIT>""" ) <EOL> text_align = Enum ( TextAlign , default = "<STR_LIT:left>" , help = """<STR_LIT>""" ) <EOL> text_color = Color ( help = """<STR_LIT>""" ) <EOL> class NumberFormatter ( StringFormatter ) : <EOL> """<STR_LIT>""" <EOL> format = String ( "<STR_LIT>" , help = """<STR_LIT>""" ) <EOL> language = Enum ( NumeralLanguage , default = "<STR_LIT>" , help = """<STR_LIT>""" ) <EOL> rounding = Enum ( RoundingFunction , help = """<STR_LIT>""" ) <EOL> class BooleanFormatter ( CellFormatter ) : <EOL> """<STR_LIT>""" <EOL> icon = Enum ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , help = """<STR_LIT>""" ) <EOL> class DateFormatter ( CellFormatter ) : <EOL> """<STR_LIT>""" <EOL> format = Either ( Enum ( DateFormat ) , String , default = '<STR_LIT>' , help = """<STR_LIT>""" ) <EOL> class HTMLTemplateFormatter ( CellFormatter ) : <EOL> """<STR_LIT>""" <EOL> template = String ( '<STR_LIT>' , help = """<STR_LIT>""" ) <EOL> class StringEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> completions = List ( String , help = """<STR_LIT>""" ) <EOL> class TextEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> class SelectEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> options = List ( String , help = """<STR_LIT>""" ) <EOL> class PercentEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> class CheckboxEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> class IntEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> step = Int ( <NUM_LIT:1> , help = """<STR_LIT>""" ) <EOL> class NumberEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> step = Float ( <NUM_LIT> , help = """<STR_LIT>""" ) <EOL> class TimeEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> class DateEditor ( CellEditor ) : <EOL> """<STR_LIT>""" <EOL> class TableColumn ( Model ) : <EOL> """<STR_LIT>""" <EOL> field = String ( help = """<STR_LIT>""" ) <EOL> title = String ( help = """<STR_LIT>""" ) <EOL> width = Int ( <NUM_LIT> , help = """<STR_LIT>""" ) <EOL> formatter = Instance ( CellFormatter , lambda : StringFormatter ( ) , help = """<STR_LIT>""" ) <EOL> editor = Instance ( CellEditor , lambda : StringEditor ( ) , help = """<STR_LIT>""" ) <EOL> sortable = Bool ( True , help = """<STR_LIT>""" ) <EOL> default_sort = Enum ( "<STR_LIT>" , "<STR_LIT>" , help = """<STR_LIT>""" ) <EOL> @ abstract <EOL> class TableWidget ( Widget ) : <EOL> """<STR_LIT>""" <EOL> source = Instance ( DataSource , help = """<STR_LIT>""" ) <EOL> class DataTable ( TableWidget ) : <EOL> """<STR_LIT>""" <EOL> columns = List ( Instance ( TableColumn ) , help = """<STR_LIT>""" ) <EOL> width = Int ( None , help = """<STR_LIT>""" ) <EOL> height = Either ( Int ( <NUM_LIT> ) , Auto , help = """<STR_LIT>""" ) <EOL> fit_columns = Bool ( True , help = """<STR_LIT>""" ) <EOL> sortable = Bool ( True , help = """<STR_LIT>""" ) <EOL> editable = Bool ( False , help = """<STR_LIT>""" ) <EOL> selectable = Either ( Bool ( True ) , Enum ( "<STR_LIT>" ) , help = """<STR_LIT>""" ) <EOL> row_headers = Bool ( True , help = """<STR_LIT>""" ) <EOL> scroll_to_selection = Bool ( True , help = """<STR_LIT>""" ) </s>
