|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.DynaGridLayout
public class DynaGridLayout
This class is a replacement for a FlowLayout inside a JScrollPane. Or a GridLayout in a JScrollPane. This layout can grow either horizontally or vertically, the other dimension is fixed. Based on the fixed dimension the number of columns (or rows) is determined for a grid layout. Then the components are laid out each row (or column) being flexible in height (width).
| Nested Class Summary | |
|---|---|
static class |
DynaGridLayout.CC
|
static class |
DynaGridLayout.DIRECTION
|
| Field Summary | |
|---|---|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
DynaGridLayout()
|
|
DynaGridLayout(JScrollPane scrollPane)
|
|
DynaGridLayout(JScrollPane scrollPane,
int align)
|
|
DynaGridLayout(JScrollPane scrollPane,
int align,
int hgap,
int vgap)
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
|
void |
addLayoutComponent(String name,
Component comp)
|
void |
componentHidden(ComponentEvent e)
|
void |
componentMoved(ComponentEvent e)
|
void |
componentResized(ComponentEvent e)
|
void |
componentShown(ComponentEvent e)
|
DynaGridLayout.CC |
getComponentConstraints(Component comp)
ComponentConstraints |
DynaGridLayout.DIRECTION |
getDirection()
Direction |
float |
getLayoutAlignmentX(Container target)
|
float |
getLayoutAlignmentY(Container target)
|
JScrollPane |
getScrollPane()
JScrollPane |
int |
getUseBorderToCreatedColumns()
|
void |
invalidateLayout(Container target)
|
void |
layoutContainer(Container parent)
|
Dimension |
maximumLayoutSize(Container target)
|
Dimension |
minimumLayoutSize(Container parent)
|
Dimension |
preferredLayoutSize(Container parent)
|
void |
removeLayoutComponent(Component comp)
|
void |
setComponentConstraints(Component comp,
DynaGridLayout.CC cc)
|
void |
setDirection(DynaGridLayout.DIRECTION value)
|
void |
setScrollPane(JScrollPane scrollPane)
|
void |
setUseBorderToCreatedColumns(int value)
UseBorderToCreatedColumns: if > 0 then a border is set on the components (overriding existing borders) to create columns |
static void |
span(Container container)
Append a span to the component constraints of the last component in the container. |
static void |
span(Container container,
Component lComponent,
boolean span)
Append a span to the component constraints of the component in the container. |
static void |
wrap(Container container)
Append a wrap to the component constraints of the last component in the container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public DynaGridLayout()
public DynaGridLayout(JScrollPane scrollPane)
public DynaGridLayout(JScrollPane scrollPane,
int align)
public DynaGridLayout(JScrollPane scrollPane,
int align,
int hgap,
int vgap)
| Method Detail |
|---|
public DynaGridLayout.DIRECTION getDirection()
public void setDirection(DynaGridLayout.DIRECTION value)
public JScrollPane getScrollPane()
public void setScrollPane(JScrollPane scrollPane)
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerpublic void componentHidden(ComponentEvent e)
componentHidden in interface ComponentListenerpublic void componentMoved(ComponentEvent e)
componentMoved in interface ComponentListenerpublic void componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListener
public void addLayoutComponent(Component comp,
Object constraints)
addLayoutComponent in interface LayoutManager2public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerpublic void setUseBorderToCreatedColumns(int value)
public int getUseBorderToCreatedColumns()
public DynaGridLayout.CC getComponentConstraints(Component comp)
public void setComponentConstraints(Component comp,
DynaGridLayout.CC cc)
public static void wrap(Container container)
container - public static void span(Container container)
container -
public static void span(Container container,
Component lComponent,
boolean span)
container -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||