|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.gui.layout.TableLayout
public final class TableLayout
This LayoutManager is similar to the GridLayout. The added components keep their minimum size even when the parent container is resized.
| Constructor Summary | |
|---|---|
TableLayout(int r,
int c)
Creates a grid layout with the specified number of rows and columns. |
|
TableLayout(int r,
int c,
int ix,
int iy)
Creates a grid layout with the specified number of rows and columns. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
layoutContainer(Container p)
Lays out the specified container using this layout. |
Dimension |
minimumLayoutSize(Container parent)
Determines the minimum size of the container argument using this grid layout. |
Dimension |
preferredLayoutSize(Container parent)
Determines the preferred size of the container argument using this grid layout. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableLayout(int r,
int c)
r - number of rowsc - number of columns
public TableLayout(int r,
int c,
int ix,
int iy)
r - number of rowsc - number of columnsix - horizontal inset sizeiy - vertical inset size| Method Detail |
|---|
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagername - the component namecomp - the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component to be removedpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerparent - the layout container
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerparent - the layout container
public void layoutContainer(Container p)
layoutContainer in interface LayoutManagerp - the layout container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||