|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.apps.ALayout
public class ALayout
Application Layout Manager.
panel.setLayout(new ALayout());
panel.add(field11, new ALayoutConstraint(0,0));
panel.add(field12, null);
panel.add(field13, null);
panel.add(field14, null);
panel.add(field21, new ALayoutConstraint(1,0));
| Constructor Summary | |
|---|---|
ALayout()
Default Constructor with spacing of 2 and columns filled |
|
ALayout(int spaceH,
int spaceV,
boolean colFill)
Detail Contructor |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component component,
Object constraint)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(String name,
Component comp)
Add To Layout with NULL constraint |
int |
getColCount()
Get Number of Columns |
float |
getLayoutAlignmentX(Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(Container target)
Returns the alignment along the y axis. |
int |
getRowCount()
Get Number of Rows |
int |
getSpaceH()
Get Horizontal Space (top, between rows, button) |
int |
getSpaceV()
Get Vertical Space (left, between columns, right) |
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
layoutContainer(Container parent)
Lays out the specified container. |
Dimension |
maximumLayoutSize(Container parent)
Calculates the maximum size dimensions for the specified container, given the components it contains. |
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
setSpaceH(int spaceH)
Set Horizontal Space (top, between rows, button) |
void |
setSpaceV(int spaceV)
Set Vertical Space (left, between columns, right) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ALayout()
public ALayout(int spaceH,
int spaceV,
boolean colFill)
spaceH - horizontal space (top, between rows, button)spaceV - vertical space (left, between columns, right)colFill - fields are fully filled (rather then preferred size)| Method Detail |
|---|
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagername - the string to be associated with the component - ignoredcomp - the component to be added
public void addLayoutComponent(Component component,
Object constraint)
Components with a NULL constraint are added as the next column to the last row
addLayoutComponent in interface LayoutManager2component - the component to be addedconstraint - where/how the component is added to the layout.ALayoutConstraintpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component to be removedpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerparent - the container to be laid out
minimumLayoutSize(java.awt.Container)public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerparent - the component to be laid out
preferredLayoutSize(java.awt.Container)public Dimension maximumLayoutSize(Container parent)
maximumLayoutSize in interface LayoutManager2parent - Parent Container
Component.getMaximumSize(),
LayoutManagerpublic void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerparent - the container to be laid outpublic float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2target - target
public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2target - target
public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2target - targetpublic int getRowCount()
public int getColCount()
public void setSpaceH(int spaceH)
spaceH - horizontal space (top, between rows, button)public int getSpaceH()
public void setSpaceV(int spaceV)
spaceV - vertical space (left, between columns, right)public int getSpaceV()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||