swingwt.awt
Class TableLayout
java.lang.Object
swingwt.awt.TableLayout
- All Implemented Interfaces:
- LayoutManager, java.io.Serializable
- public class TableLayout
- extends java.lang.Object
- implements LayoutManager, java.io.Serializable
Well here's a shocker - I didn't expect to be implementing
an SWT layout in AWT!
- See Also:
- Serialized Form
Field Summary |
protected int |
cols
|
protected int |
hgap
|
protected boolean |
leftToRight
Lays out left to right by default, otherwise lays out top
to bottom going left to right (like newspaper). |
protected int |
rows
|
protected int |
vgap
|
Constructor Summary |
TableLayout()
|
TableLayout(int rows,
int cols)
|
TableLayout(int rows,
int cols,
boolean leftToRight)
|
TableLayout(int rows,
int cols,
int hgap,
int vgap)
|
TableLayout(int rows,
int cols,
int hgap,
int vgap,
boolean leftToRight)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hgap
protected int hgap
vgap
protected int vgap
rows
protected int rows
cols
protected int cols
leftToRight
protected boolean leftToRight
- Lays out left to right by default, otherwise lays out top
to bottom going left to right (like newspaper).
TableLayout
public TableLayout()
TableLayout
public TableLayout(int rows,
int cols)
TableLayout
public TableLayout(int rows,
int cols,
boolean leftToRight)
TableLayout
public TableLayout(int rows,
int cols,
int hgap,
int vgap)
TableLayout
public TableLayout(int rows,
int cols,
int hgap,
int vgap,
boolean leftToRight)
getRows
public int getRows()
setRows
public void setRows(int rows)
getColumns
public int getColumns()
setColumns
public void setColumns(int cols)
getHgap
public int getHgap()
setHgap
public void setHgap(int hgap)
getVgap
public int getVgap()
setVgap
public void setVgap(int vgap)
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
Component comp)
- Specified by:
addLayoutComponent
in interface LayoutManager
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Specified by:
removeLayoutComponent
in interface LayoutManager
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSize
in interface LayoutManager
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSize
in interface LayoutManager
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainer
in interface LayoutManager