|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.lib.PWidget.FormRowLayout
An abstract layout manager to set the horizontal positions of a set of components based on unique, ordered, non-sequential row numbers, layout size, and component minimum and preferred sizes.
Basic Design:
Each FormRowLayout is responsible for a single row of components.
Each component is stored in a component layout, which performs the actual layout functions.
Rows are linked together in a doubly linked list.
Rows use the same minimum and preferred location floating point scheme as ColumnLayout, except that they will not expand to fill extra space.
PInternalFrame| Inner Class Summary | |
private class |
FormRowLayout.ComponentLayout
|
| Field Summary | |
static int |
ALIGN_BOTTOM
|
static int |
ALIGN_CENTER
|
static int |
ALIGN_TOP
|
private FormLayout.ExtendedVector |
m_components
the components in this layout. |
(package private) FormLayout |
m_containingLayout
|
protected int |
m_currLocation
|
private int |
m_currSize
|
private FormRowLayout |
m_followingRow
The row above this. |
private int |
m_index
row index. |
private int |
m_justification
How to position components that are allotted extra space (components will never fill the extra space). |
protected int |
m_minLocation
|
private int |
m_minSize
|
protected int |
m_prefLocation
|
private int |
m_prefSize
|
private FormRowLayout |
m_previousRow
the row below this. |
| Constructor Summary | |
FormRowLayout(int index,
FormLayout containingLayout)
|
|
| Method Summary | |
void |
add(java.awt.Component addMe)
|
void |
addFloater(java.awt.Component addMe,
int anchorRow)
|
void |
doLayout()
|
protected void |
findMinimumLocation()
determine m_minLocation and m_minSize |
protected void |
findPreferredLocation()
Determine m_prefLocation and m_prefSize. |
int |
getIndex()
|
protected int |
getMinLowerBoundary()
|
protected int |
getPrefLowerBoundary()
|
FormRowLayout |
getRow(int row)
may create the row requested. |
protected int |
getUpperBoundary()
|
protected void |
removeIfEmpty()
If this has no more components, remove this. |
void |
removeLayoutComponent(java.awt.Component removeMe)
|
private void |
setAnchor(FormRowLayout.ComponentLayout addMe)
|
protected void |
setLocation(double pct)
|
protected void |
setMinimumLocation(int minLoc)
Hook for subclasses |
protected void |
setPreferredLocation(int prefLoc)
Hook for subclasses. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private FormLayout.ExtendedVector m_components
private FormRowLayout m_previousRow
private FormRowLayout m_followingRow
FormLayout m_containingLayout
protected int m_minLocation
protected int m_prefLocation
protected int m_currLocation
private int m_minSize
private int m_prefSize
private int m_currSize
private int m_justification
private int m_index
public static final int ALIGN_TOP
public static final int ALIGN_CENTER
public static final int ALIGN_BOTTOM
| Constructor Detail |
public FormRowLayout(int index,
FormLayout containingLayout)
index - containingLayout - | Method Detail |
public int getIndex()
public void add(java.awt.Component addMe)
public void addFloater(java.awt.Component addMe,
int anchorRow)
private void setAnchor(FormRowLayout.ComponentLayout addMe)
public FormRowLayout getRow(int row)
public void removeLayoutComponent(java.awt.Component removeMe)
protected void removeIfEmpty()
protected void findPreferredLocation()
protected void findMinimumLocation()
protected void setPreferredLocation(int prefLoc)
protected void setMinimumLocation(int minLoc)
protected void setLocation(double pct)
protected int getPrefLowerBoundary()
protected int getMinLowerBoundary()
protected int getUpperBoundary()
public void doLayout()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||