class org.aswing.ext.Form extends JPanel
Interfaces | |||
![]() | LayoutManager |
|
Form is a vertical list of FormRow
s.
Form will are tring to manage to layout FormRow
s, if you append non-FormRow
component to be child of Form, it will layouted as a SoftBoxLayout
layouted.
@author paling
@see FormRow
Instance Fields
function addRow(columns:Array<Dynamic>): FormRow
Adds a FormRow with columns children. Each child sit a row, null child make a column blank,
also a child can sit a continuous serveral columns.
For the 3 case, they are:
-
[ --child1-- ][ --child2-- ][ --child3-- ]
3 children sit 3 columns, one by one:
addRow(child1, child2, child3);
-
[ ---------- ][ --child1-- ][ --child2-- ]
First blank, and then 2 children sit 2 columns:
addRow(null, child1, child2);
-
[ ----------child1-------- ][ --child2-- ]
child1 sit first two column2, child2 sit last column:
addRow(child1, child1, child2);
returns | the form row. |