|
|||||||||
| Home >> All >> com >> gopas >> rt >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.gopas.rt.gui
Class FormLayout

java.lang.Objectcom.gopas.rt.gui.FormLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, com.gopas.rt.util.RT
- public class FormLayout
- extends java.lang.Object
- implements java.awt.LayoutManager, com.gopas.rt.util.RT
- extends java.lang.Object
Taken from Bryan Hawkins FormLayout package. See file header for further info on copyright and the original package.
| Nested Class Summary | |
(package private) class |
FormLayout.ColumnLeader
|
(package private) class |
FormLayout.RowLeader
|
| Field Summary | |
static int |
DEFAULT
Specifies default alignment for the associated component (used in the FormLayout.add() methods). |
static int |
FREE_FIELD
Special alignment: the associated field will not align with other fields in this column (used in certain FormLayout.add()
methods). |
static int |
FREE_LABEL
Special alignment: the associated label will not align with other labels in this column (used in certain FormLayout.add()
methods). |
static int |
LABEL_ON_TOP
Special alignment: the label and field will appear in subsequent columns, starting with the one specified (used in certain FormLayout.add() methods). |
private FormLayout.ColumnLeader |
m_ColumnLeader
|
private java.util.List |
m_Columns
|
private java.awt.Container |
m_container
|
private int |
m_externalHGap
|
private int |
m_externalVGap
|
private int |
m_hgap
|
private double |
m_pct
|
private FormLayout.RowLeader |
m_RowLeader
|
private int |
m_vgap
|
| Fields inherited from interface com.gopas.rt.util.RT |
ACTIVATED_STATUS, ALL, CREATED_STATUS, DEBUG, DEBUG_MSG, DEBUG_ON, DEFAULT_DEBUG_LEVEL, DEFAULT_ERROR_LEVEL, DEFAULT_VERBOSE_LEVEL, DEFAULT_WARNING_LEVEL, DELETED_STATUS, EASY_ERR, ERROR_MSG, FORCE, GENERAL, MODIFIED_STATUS, nl, NORMAL_ERR, NOTE, NOTE1, NOTE2, NOTE3, NOTE4, NOTE5, OFF, PROGRESS, SEVERE_ERR, VERBOSE_MSG, WARNING, WARNING_MSG |
| Constructor Summary | |
FormLayout()
|
|
FormLayout(int internalHGap,
int internalVGap,
int externalHGap,
int externalVGap)
Most specific gap access available. |
|
| Method Summary | |
void |
add(java.awt.Component label,
java.awt.Component field,
int row,
int column)
Add label and field with alignment
respective to the other labels and fields in column. |
void |
add(java.awt.Component label,
java.awt.Component field,
int row,
int column,
double fillRightPct)
Add label and field with alignment
respective to the other labels and fields in column. |
void |
add(java.awt.Component label,
java.awt.Component field,
int row,
int column,
int mode)
Add label and field with alignment
respective to the other labels and fields in column,
subject to the specified mode. |
void |
add(java.awt.Component label,
java.awt.Component field,
int row,
int column,
int mode,
double fillRightPct)
Add label and field with alignment
respective to the other labels and fields in column,
subject to the specified mode, and will stretch as far as
preferredSize.width * fillRightPct to right justify. |
void |
add(java.awt.Component component,
int row,
int column)
Add a component that will align with the labels in
column. |
void |
add(java.awt.Component component,
int row,
int column,
double fillRightPct)
Add a component that will align with the labels in
column,
and will stretch as far as preferredSize.width *
fillRightPct to right justify. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Terminated ancestor method. |
void |
addMultiRow(java.awt.Component label,
java.awt.Component field,
int startRow,
int endRow,
int column)
Add label and field with alignment
respective to the other labels and fields in column. |
void |
addMultiRow(java.awt.Component label,
java.awt.Component field,
int startRow,
int endRow,
int column,
double fillRightPct)
Add label and field with alignment
respective to the other labels and fields in column. |
void |
addMultiRow(java.awt.Component label,
java.awt.Component field,
int startRow,
int endRow,
int column,
int mode)
Add label and field with alignment
respective to the other labels and fields in column,
subject to the specified mode, and span from
startRow to endRow. |
void |
addMultiRow(java.awt.Component label,
java.awt.Component field,
int startRow,
int endRow,
int column,
int mode,
double fillRightPct)
Add label and field with alignment
respective to the other labels and fields in column,
subject to the specified mode, will span from
startRow to endRow, and will stretch as far
as preferredSize.width * fillRightPct to reach the right side. |
void |
addMultiRow(java.awt.Component component,
int startRow,
int endRow,
int column)
Add a component that will align with the labels in
column,
and span from startRow to endRow. |
void |
addMultiRow(java.awt.Component component,
int startRow,
int endRow,
int column,
double fillRightPct)
Add a component that will align with the labels in
column,
will span from startRow to endRow, and will
stretch as far
as preferredSize.width * fillRightPct to reach the right side. |
protected int |
getBottomInset()
externalVGap + bottom inset of the container |
(package private) ColumnLayout |
getColumn(int column)
|
double |
getDefaultFillRightPct()
|
int |
getExternalHGap()
|
int |
getExternalVGap()
|
int |
getInternalHGap()
|
int |
getInternalVGap()
|
protected int |
getLeftInset()
externalHGap + left inset of the container. |
protected int |
getRightInset()
externalHGap + right inset of the container. |
protected int |
getTopInset()
externalVGap + top inset of the container. |
private void |
init()
|
void |
layoutContainer(java.awt.Container parent)
Lays out the components in the given container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size for this container, taking into account the components it contains. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size for this container, taking into account the components it contains. |
void |
removeLayoutComponent(java.awt.Component component)
Removes the specified component from the layout group. |
void |
setDefaultFillRightPct(double fillRightPct)
All subsequent add() calls that do not specify
fillRightPct will use this fillRightPct. |
void |
setExternalHGap(int gap)
|
void |
setExternalVGap(int gap)
|
void |
setInternalHGap(int gap)
|
void |
setInternalVGap(int gap)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
m_hgap
private int m_hgap
m_vgap
private int m_vgap
m_externalHGap
private int m_externalHGap
m_externalVGap
private int m_externalVGap
m_pct
private double m_pct
m_Columns
private java.util.List m_Columns
m_ColumnLeader
private FormLayout.ColumnLeader m_ColumnLeader
m_RowLeader
private FormLayout.RowLeader m_RowLeader
m_container
private java.awt.Container m_container
DEFAULT
public static final int DEFAULT
- Specifies default alignment for the associated component (used in the
FormLayout.add()methods).- See Also:
- Constant Field Values
FREE_LABEL
public static final int FREE_LABEL
- Special alignment: the associated label will not align with other
labels in this column (used in certain
FormLayout.add()methods).- See Also:
- Constant Field Values
FREE_FIELD
public static final int FREE_FIELD
- Special alignment: the associated field will not align with other
fields in this column (used in certain
FormLayout.add()methods).- See Also:
- Constant Field Values
LABEL_ON_TOP
public static final int LABEL_ON_TOP
- Special alignment: the label and field will appear in subsequent
columns, starting with the one specified (used in certain
FormLayout.add()methods).- See Also:
- Constant Field Values
| Constructor Detail |
FormLayout
public FormLayout()
FormLayout
public FormLayout(int internalHGap,
int internalVGap,
int externalHGap,
int externalVGap)
- Most specific gap access available.
| Method Detail |
getLeftInset
protected int getLeftInset()
- externalHGap + left inset of the container.
getRightInset
protected int getRightInset()
- externalHGap + right inset of the container.
getTopInset
protected int getTopInset()
- externalVGap + top inset of the container.
getBottomInset
protected int getBottomInset()
- externalVGap + bottom inset of the container
getInternalHGap
public int getInternalHGap()
getInternalVGap
public int getInternalVGap()
getExternalHGap
public int getExternalHGap()
getExternalVGap
public int getExternalVGap()
setInternalVGap
public void setInternalVGap(int gap)
setInternalHGap
public void setInternalHGap(int gap)
setExternalVGap
public void setExternalVGap(int gap)
setExternalHGap
public void setExternalHGap(int gap)
init
private void init()
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Description copied from interface:
java.awt.LayoutManager - Lays out the components in the given container.
- Specified by:
layoutContainerin interfacejava.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Description copied from interface:
java.awt.LayoutManager - Calculates the minimum size for this container, taking into account
the components it contains.
- Specified by:
minimumLayoutSizein interfacejava.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Description copied from interface:
java.awt.LayoutManager - Calculates the preferred size for this container, taking into account
the components it contains.
- Specified by:
preferredLayoutSizein interfacejava.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component component)
- Description copied from interface:
java.awt.LayoutManager - Removes the specified component from the layout group.
- Specified by:
removeLayoutComponentin interfacejava.awt.LayoutManager
add
public void add(java.awt.Component component, int row, int column)
- Add a
componentthat will align with the labels incolumn.
add
public void add(java.awt.Component label, java.awt.Component field, int row, int column)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn.
add
public void add(java.awt.Component label, java.awt.Component field, int row, int column, int mode)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn, subject to the specifiedmode.
addMultiRow
public void addMultiRow(java.awt.Component component, int startRow, int endRow, int column)
- Add a
componentthat will align with the labels incolumn, and span fromstartRowtoendRow.
addMultiRow
public void addMultiRow(java.awt.Component label, java.awt.Component field, int startRow, int endRow, int column)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn. and span fromstartRowtoendRow.
addMultiRow
public void addMultiRow(java.awt.Component label, java.awt.Component field, int startRow, int endRow, int column, int mode)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn, subject to the specifiedmode, and span fromstartRowtoendRow.
add
public void add(java.awt.Component component, int row, int column, double fillRightPct)
- Add a
componentthat will align with the labels incolumn, and will stretch as far aspreferredSize.width * fillRightPctto right justify.
add
public void add(java.awt.Component label, java.awt.Component field, int row, int column, double fillRightPct)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn. and will stretch as far aspreferredSize.width * fillRightPctto right justify.
add
public void add(java.awt.Component label, java.awt.Component field, int row, int column, int mode, double fillRightPct)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn, subject to the specifiedmode, and will stretch as far aspreferredSize.width * fillRightPctto right justify.
addMultiRow
public void addMultiRow(java.awt.Component component, int startRow, int endRow, int column, double fillRightPct)
- Add a
componentthat will align with the labels incolumn, will span fromstartRowtoendRow, and will stretch as far aspreferredSize.width * fillRightPctto reach the right side.
addMultiRow
public void addMultiRow(java.awt.Component label, java.awt.Component field, int startRow, int endRow, int column, double fillRightPct)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn. will span fromstartRowtoendRow, and will stretch as far aspreferredSize.width * fillRightPctto reach the right side.
addMultiRow
public void addMultiRow(java.awt.Component label, java.awt.Component field, int startRow, int endRow, int column, int mode, double fillRightPct)
- Add
labelandfieldwith alignment respective to the other labels and fields incolumn, subject to the specifiedmode, will span fromstartRowtoendRow, and will stretch as far aspreferredSize.width * fillRightPctto reach the right side.
setDefaultFillRightPct
public void setDefaultFillRightPct(double fillRightPct)
- All subsequent
add()calls that do not specifyfillRightPctwill use thisfillRightPct.
getDefaultFillRightPct
public double getDefaultFillRightPct()
getColumn
ColumnLayout getColumn(int column)
addLayoutComponent
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
- Terminated ancestor method.
- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager
|
|||||||||
| Home >> All >> com >> gopas >> rt >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.gopas.rt.gui.FormLayout