Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Call NameLoad Str Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Call NameLoad Str Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list decorator_list
N/A N/A 
The ``ui.FlexTable`` class implements a table that can have different numbers
of cells in each row, and single cells can span multiple rows and columns.

Each FlexTable has a ``FlexCellFormatter`` which you can use to format the
cells in the table.  The ``FlexCellFormatter`` has methods to set the row or
column spans for a cell, as well as change the cell alignment, as shown below.

Note that if you use row or column spanning, the cells on the rest of that row
or column will be moved over.  This can cause some surprising results.  Imagine
that you have a table like this:

    +---+---+---+
    | A | B | C |
    +---+---+---+
    | D | E | F |
    +---+---+---+

If you set up Cell 0,0 to span two columns, like this:

    flexTable.getFlexCellFormatter().setColSpan(0, 0, 2)

This will cause the table to end up looking like this:

    +-------+---+---+
    |   A   | B | C |
    +---+---+---+---+
    | D | E | F |
    +---+---+---+

you might expect cell B to be above cell E, but to make this happen you need to
place cell E at (1, 2) rather than (1, 1).

Each FlexTable also has a ``RowFormatter`` which can be used to change style
names, attributes, and the visibility of rows in the table.
 pyjamas.ui.SimplePanel SimplePanel pyjamas.ui.FlexTable FlexTable pyjamas.ui HasAlignment pyjamas.ui.Button Button FlexTableDemo N/A SimplePanel N/A __init__ N/A N/A self N/A N/A N/A N/A N/A SimplePanel __init__ self N/A N/A self _table N/A FlexTable BorderWidth 1 Width 100% N/A cellFormatter N/A N/A N/A self _table getFlexCellFormatter N/A rowFormatter N/A N/A N/A self _table getRowFormatter N/A N/A N/A N/A self _table setHTML 0 0 <b>Mammals</b> N/A N/A N/A N/A self _table setText 1 0 Cow N/A N/A N/A N/A self _table setText 1 1 Rat N/A N/A N/A N/A self _table setText 1 2 Dog N/A N/A N/A cellFormatter setColSpan 0 0 3 N/A N/A N/A cellFormatter setHorizontalAlignment 0 0 N/A HasAlignment ALIGN_CENTER N/A N/A N/A N/A self _table setWidget 2 0 N/A Button Hide N/A getattr self hideRows N/A N/A N/A N/A self _table setText 2 1 1,1 N/A N/A N/A N/A self _table setText 2 2 2,1 N/A N/A N/A N/A self _table setText 3 0 1,2 N/A N/A N/A N/A self _table setText 3 1 2,2 N/A N/A N/A cellFormatter setRowSpan 2 0 2 N/A N/A N/A cellFormatter setVerticalAlignment 2 0 N/A HasAlignment ALIGN_MIDDLE N/A N/A N/A N/A self _table setWidget 4 0 N/A Button Show N/A getattr self showRows N/A N/A N/A cellFormatter setColSpan 4 0 3 N/A N/A N/A rowFormatter setVisible 4 False N/A N/A N/A self add N/A self _table N/A hideRows N/A N/A self sender N/A N/A N/A rowFormatter N/A N/A N/A self _table getRowFormatter N/A N/A N/A rowFormatter setVisible 2 False N/A N/A N/A rowFormatter setVisible 3 False N/A N/A N/A rowFormatter setVisible 4 True N/A showRows N/A N/A self sender N/A N/A N/A rowFormatter N/A N/A N/A self _table getRowFormatter N/A N/A N/A rowFormatter setVisible 2 True N/A N/A N/A rowFormatter setVisible 3 True N/A N/A N/A rowFormatter setVisible 4 False N/A N/A