|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.layout.FormLayoutService
public class FormLayoutService
Layout based on FormLayout.
| Constructor Summary | |
|---|---|
FormLayoutService()
Constructor with default values |
|
FormLayoutService(String columnSpecs,
String rowSpecs)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(JPanel panel,
JComponent component,
Object constraint)
Adds a component to a panel using the given
constraint. |
String |
getColumnGroups()
Gets the column groups. |
String |
getColumnSpecs()
Gets the column specifications. |
int |
getRowCount()
Gets the row count. |
String |
getRowGap()
Gets the row gap. |
String |
getRowGroups()
Gets the row groups. |
String |
getRowSpec()
Gets the specification for one row. |
String |
getRowSpecs()
Gets the row specifications. |
void |
init(JPanel panel)
Initializes a panel for layout |
boolean |
isDefaultBorder()
Checks if is default border. |
int[][] |
parseGroups(String group)
Parses a row or column group definition. |
void |
postConstruct()
Initialisation of properties. |
void |
setColumnGroups(String columnGroups)
Sets the column groups. |
void |
setColumnSpecs(String columnSpecs)
Sets the column specifications. |
void |
setDefaultBorder(boolean defaultBorder)
Sets the default border. |
void |
setRowCount(int rowCount)
Sets the row count. |
void |
setRowGap(String rowGap)
Sets the row gap. |
void |
setRowGroups(String rowGroups)
Sets the row groups. |
void |
setRowSpec(String rowSpec)
Sets the specification for one row. |
void |
setRowSpecs(String rowSpecs)
Sets the row specifications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormLayoutService()
public FormLayoutService(String columnSpecs,
String rowSpecs)
columnSpecs - Column specificationsrowSpecs - Row specificationssetColumnSpecs(String),
setRowSpecs(String)| Method Detail |
|---|
@PostConstruct public void postConstruct()
If rowSpecs property has not been set, it is computed using
rowSpec, rowGap and rowCount
using:
rowSpecs := rowSpec "," rowGap "," rowSpec "," rowGap ... (rowCount times)
public void add(JPanel panel,
JComponent component,
Object constraint)
LayoutServicecomponent to a panel using the given
constraint.
add in interface LayoutServicepanel - Containercomponent - Component to addconstraint - Constraint for the positionpublic void init(JPanel panel)
LayoutService
init in interface LayoutServicepanel - Panel to initialize.public int[][] parseGroups(String group)
Groups are comma-separated lists of integers. And the group definition is a "|"-separated list of groups.
For example,
3,4|5,7
stands for
{{3,4},{5,7}}
group - Group definition
public String getColumnSpecs()
FormLayoutpublic void setColumnSpecs(String columnSpecs)
columnSpecs - the new column specificationsFormLayoutpublic String getColumnGroups()
parseGroups(String)public void setColumnGroups(String columnGroups)
columnGroups - the new column groupsparseGroups(String)public String getRowSpecs()
FormLayoutpublic void setRowSpecs(String rowSpecs)
rowSpecs - the new row specificationsFormLayoutpublic String getRowGroups()
parseGroups(String)public void setRowGroups(String rowGroups)
rowGroups - the new row groupsparseGroups(String)public String getRowSpec()
postConstruct()public void setRowSpec(String rowSpec)
rowSpec - SpecificationpostConstruct()public String getRowGap()
postConstruct()public void setRowGap(String rowGap)
rowGap - the new row gappostConstruct()public int getRowCount()
postConstruct()public void setRowCount(int rowCount)
rowCount - the new row countpostConstruct()public boolean isDefaultBorder()
public void setDefaultBorder(boolean defaultBorder)
defaultBorder - the new default border
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||