|
||||||||||
| 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 java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
DynaGridLayout()
|
|
DynaGridLayout(javax.swing.JScrollPane scrollPane)
|
|
DynaGridLayout(javax.swing.JScrollPane scrollPane,
int align)
|
|
DynaGridLayout(javax.swing.JScrollPane scrollPane,
int align,
int hgap,
int vgap)
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
DynaGridLayout.CC |
getComponentConstraints(java.awt.Component comp)
ComponentConstraints |
DynaGridLayout.DIRECTION |
getDirection()
Direction |
float |
getLayoutAlignmentX(java.awt.Container target)
|
float |
getLayoutAlignmentY(java.awt.Container target)
|
javax.swing.JScrollPane |
getScrollPane()
JScrollPane |
int |
getUseBorderToCreatedColumns()
|
void |
invalidateLayout(java.awt.Container target)
|
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
setComponentConstraints(java.awt.Component comp,
DynaGridLayout.CC cc)
|
void |
setDirection(DynaGridLayout.DIRECTION value)
|
void |
setScrollPane(javax.swing.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(java.awt.Container container)
Append a span to the component constraints of the last component in the container. |
static void |
span(java.awt.Container container,
java.awt.Component lComponent,
boolean span)
Append a span to the component constraints of the component in the container. |
static void |
wrap(java.awt.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 java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public DynaGridLayout()
public DynaGridLayout(javax.swing.JScrollPane scrollPane)
public DynaGridLayout(javax.swing.JScrollPane scrollPane,
int align)
public DynaGridLayout(javax.swing.JScrollPane scrollPane,
int align,
int hgap,
int vgap)
| Method Detail |
|---|
public DynaGridLayout.DIRECTION getDirection()
public void setDirection(DynaGridLayout.DIRECTION value)
public javax.swing.JScrollPane getScrollPane()
public void setScrollPane(javax.swing.JScrollPane scrollPane)
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListener
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2public void invalidateLayout(java.awt.Container target)
invalidateLayout in interface java.awt.LayoutManager2
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic void setUseBorderToCreatedColumns(int value)
public int getUseBorderToCreatedColumns()
public DynaGridLayout.CC getComponentConstraints(java.awt.Component comp)
public void setComponentConstraints(java.awt.Component comp,
DynaGridLayout.CC cc)
public static void wrap(java.awt.Container container)
container - public static void span(java.awt.Container container)
container -
public static void span(java.awt.Container container,
java.awt.Component lComponent,
boolean span)
container -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||