|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.swing.ext.layout.JVxFormLayout
public class JVxFormLayout
The FormLayout is a simple to use Layout which allows complex forms.
Nested Class Summary | |
---|---|
static class |
JVxFormLayout.Anchor
The Anchor gives the possible horizontal and vertical positions. |
static class |
JVxFormLayout.Constraint
The Constraint stores the top, left, bottom and right Anchor for layouting a component. |
Field Summary | |
---|---|
static String |
NEWLINE
Constraint for starting a new row for the given component. |
Fields inherited from interface com.sibvisions.rad.ui.swing.ext.JVxConstants |
---|
STRETCH |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
JVxFormLayout()
Constructs a new FormLayout. |
Method Summary | |
---|---|
void |
addLayoutComponent(Component pComponent,
Object pConstraint)
|
void |
addLayoutComponent(String pName,
Component pComponent)
|
JVxFormLayout.Constraint |
createConstraint(int pColumn,
int pRow)
Creates the default constraints for the given column and row. |
JVxFormLayout.Constraint |
createConstraint(int pBeginColumn,
int pBeginRow,
int pEndColumn,
int pEndRow)
Creates the default constraints for the given column and row. |
JVxFormLayout.Anchor |
getBottomAnchor()
Returns the bottom border anchor. |
JVxFormLayout.Anchor |
getBottomMarginAnchor()
Returns the bottom margin border anchor. |
JVxFormLayout.Constraint |
getConstraint(Component pComponent)
Gets the constraints for given component. |
int |
getHorizontalAlignment()
Returns the alignment for the x axis. |
JVxFormLayout.Anchor[] |
getHorizontalAnchors()
Returns all horizontal anchors used by this layout. |
int |
getHorizontalGap()
Gets the horizontal gap. |
float |
getLayoutAlignmentX(Container pTarget)
|
float |
getLayoutAlignmentY(Container pTarget)
|
JVxFormLayout.Anchor |
getLeftAnchor()
Returns the left border anchor. |
JVxFormLayout.Anchor |
getLeftMarginAnchor()
Returns the left margin border anchor. |
Insets |
getMargins()
Gets the margins. |
int |
getNewlineCount()
Gets the new line count. |
JVxFormLayout.Anchor |
getRightAnchor()
Returns the right border anchor. |
JVxFormLayout.Anchor |
getRightMarginAnchor()
Returns the right margin border anchor. |
JVxFormLayout.Anchor |
getTopAnchor()
Returns the top border anchor. |
JVxFormLayout.Anchor |
getTopMarginAnchor()
Returns the top margin border anchor. |
int |
getVerticalAlignment()
Gets the alignment for the y axis. |
JVxFormLayout.Anchor[] |
getVerticalAnchors()
Returns all vertical anchors used by this layout. |
int |
getVerticalGap()
Gets the vertical gap. |
void |
invalidateLayout(Container pTarget)
|
void |
layoutContainer(Container pTarget)
|
Dimension |
maximumLayoutSize(Container pTarget)
|
Dimension |
minimumLayoutSize(Container pTarget)
|
Dimension |
preferredLayoutSize(Container pTarget)
|
void |
removeLayoutComponent(Component pComponent)
|
void |
setConstraint(Component pComponent,
JVxFormLayout.Constraint pConstraint)
Sets the constraints for given component. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the alignment for the x axis. |
void |
setHorizontalGap(int pGap)
Sets the horizontal gap. |
void |
setMargins(Insets pMargins)
Sets the margins. |
void |
setNewlineCount(int pNewlineCount)
Sets the new line count. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the alignment for the y axis. |
void |
setVerticalGap(int pGap)
Sets the vertical gap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NEWLINE
Constructor Detail |
---|
public JVxFormLayout()
Method Detail |
---|
public float getLayoutAlignmentX(Container pTarget)
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container pTarget)
getLayoutAlignmentY
in interface LayoutManager2
public void invalidateLayout(Container pTarget)
invalidateLayout
in interface LayoutManager2
public void addLayoutComponent(Component pComponent, Object pConstraint)
addLayoutComponent
in interface LayoutManager2
public void addLayoutComponent(String pName, Component pComponent)
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component pComponent)
removeLayoutComponent
in interface LayoutManager
public Dimension minimumLayoutSize(Container pTarget)
minimumLayoutSize
in interface LayoutManager
public Dimension preferredLayoutSize(Container pTarget)
preferredLayoutSize
in interface LayoutManager
public Dimension maximumLayoutSize(Container pTarget)
maximumLayoutSize
in interface LayoutManager2
public void layoutContainer(Container pTarget)
layoutContainer
in interface LayoutManager
public void setHorizontalAlignment(int pHorizontalAlignment)
pHorizontalAlignment
- the alignment SwingConstants.LEFT
, SwingConstants.CENTER
,
SwingConstants.RIGHT
or JVxConstants.STRETCH
public int getHorizontalAlignment()
SwingConstants.LEFT
, SwingConstants.CENTER
,
SwingConstants.RIGHT
or JVxConstants.STRETCH
public void setVerticalAlignment(int pVerticalAlignment)
pVerticalAlignment
- the alignment SwingConstants.TOP
, SwingConstants.CENTER
,
SwingConstants.BOTTOM
or JVxConstants.STRETCH
public int getVerticalAlignment()
SwingConstants.TOP
, SwingConstants.CENTER
,
SwingConstants.BOTTOM
or JVxConstants.STRETCH
public int getHorizontalGap()
public void setHorizontalGap(int pGap)
pGap
- the horizontal gap.public int getVerticalGap()
public void setVerticalGap(int pGap)
pGap
- the vertical gap.public Insets getMargins()
public void setMargins(Insets pMargins)
pMargins
- the margins.public int getNewlineCount()
public void setNewlineCount(int pNewlineCount)
pNewlineCount
- the new line count.public JVxFormLayout.Anchor getLeftAnchor()
public JVxFormLayout.Anchor getRightAnchor()
public JVxFormLayout.Anchor getTopAnchor()
public JVxFormLayout.Anchor getBottomAnchor()
public JVxFormLayout.Anchor getLeftMarginAnchor()
public JVxFormLayout.Anchor getRightMarginAnchor()
public JVxFormLayout.Anchor getTopMarginAnchor()
public JVxFormLayout.Anchor getBottomMarginAnchor()
public JVxFormLayout.Anchor[] getHorizontalAnchors()
public JVxFormLayout.Anchor[] getVerticalAnchors()
public JVxFormLayout.Constraint getConstraint(Component pComponent)
pComponent
- the component.
public void setConstraint(Component pComponent, JVxFormLayout.Constraint pConstraint)
pComponent
- the component.pConstraint
- the constraints for the given component.public JVxFormLayout.Constraint createConstraint(int pColumn, int pRow)
pColumn
- the column.pRow
- the row.
public JVxFormLayout.Constraint createConstraint(int pBeginColumn, int pBeginRow, int pEndColumn, int pEndRow)
pBeginColumn
- the begin column.pBeginRow
- the begin row.pEndColumn
- the end column.pEndRow
- the end row.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |