|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<JVxFormLayout>
com.sibvisions.rad.ui.swing.impl.layout.AwtFormLayout
public class AwtFormLayout
The AwtFormLayout
is the IFormLayout
implementation for AWT.
JVxFormLayout
Nested Class Summary | |
---|---|
static class |
AwtFormLayout.AwtAnchor
The Anchor gives the possible horizontal and vertical positions. |
static class |
AwtFormLayout.AwtConstraints
The Constraint stores the top, left, bottom and right Anchor for layouting a component. |
Nested classes/interfaces inherited from interface javax.rad.ui.layout.IFormLayout |
---|
IFormLayout.IAnchor, IFormLayout.IConstraints |
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Fields inherited from interface javax.rad.ui.layout.IFormLayout |
---|
NEWLINE |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
AwtFormLayout()
Creates a new instance of AwtSimpleFormLayout based on an
IFormLayout implementation. |
Method Summary | |
---|---|
IFormLayout.IAnchor |
createAnchor(IFormLayout.IAnchor pRelatedAnchor)
Constructs an anchor relative to pRelatedAnchor auto sized. |
IFormLayout.IAnchor |
createAnchor(IFormLayout.IAnchor pRelatedAnchor,
IFormLayout.IAnchor pSecondRelatedAnchor,
float pRelativePosition)
Constructs an centered anchor between the related and second related anchor. |
IFormLayout.IAnchor |
createAnchor(IFormLayout.IAnchor pRelatedAnchor,
int pPosition)
Constructs an anchor relative to pRelatedAnchor with pPosition pixels. |
IFormLayout.IAnchor |
getBottomAnchor()
Returns the bottom border anchor. |
IFormLayout.IAnchor |
getBottomMarginAnchor()
Returns the bottom margin border anchor. |
IFormLayout.IConstraints |
getConstraints(IComponent pComponent)
Gets the constraints for the specified IComponent . |
IFormLayout.IConstraints |
getConstraints(IFormLayout.IAnchor pTopAnchor,
IFormLayout.IAnchor pLeftAnchor)
Gets the constraints for the left corner, specified through anchors. |
IFormLayout.IConstraints |
getConstraints(IFormLayout.IAnchor pTopAnchor,
IFormLayout.IAnchor pLeftAnchor,
IFormLayout.IAnchor pBottomAnchor,
IFormLayout.IAnchor pRightAnchor)
Creates the default constraints for the given anchors. |
IFormLayout.IConstraints |
getConstraints(int pColumn,
int pRow)
Creates the default constraints for the given column and row. |
IFormLayout.IConstraints |
getConstraints(int pBeginColumn,
int pBeginRow,
int pEndColumn,
int pEndRow)
Creates the default constraints for the given column and row. |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
IFormLayout.IAnchor[] |
getHorizontalAnchors()
Returns all horizontal anchors used by this layout. |
int |
getHorizontalGap()
Returns the horizontal gap between components. |
IFormLayout.IAnchor |
getLeftAnchor()
Returns the left border anchor. |
IFormLayout.IAnchor |
getLeftMarginAnchor()
Returns the left margin border anchor. |
IInsets |
getMargins()
Gets the margins. |
int |
getNewlineCount()
Gets the new line count. |
IFormLayout.IAnchor |
getRightAnchor()
Returns the right border anchor. |
IFormLayout.IAnchor |
getRightMarginAnchor()
Returns the right margin border anchor. |
IFormLayout.IAnchor |
getTopAnchor()
Returns the top border anchor. |
IFormLayout.IAnchor |
getTopMarginAnchor()
Returns the top margin border anchor. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
IFormLayout.IAnchor[] |
getVerticalAnchors()
Returns all vertical anchors used by this layout. |
int |
getVerticalGap()
Returns the vertical gap between components. |
void |
setConstraints(IComponent pComponent,
IFormLayout.IConstraints pConstraints)
Gets the constraints for the specified IComponent . |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setHorizontalGap(int pHgap)
Sets the horizontal gap between components. |
void |
setMargins(IInsets pMargins)
Sets the margins. |
void |
setNewlineCount(int pNewlineCount)
Sets the new line count. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
void |
setVerticalGap(int pVgap)
Sets the vertical gap between components. |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
equals, getResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public AwtFormLayout()
AwtSimpleFormLayout
based on an
IFormLayout
implementation.
IFormLayout
Method Detail |
---|
public int getHorizontalAlignment()
getHorizontalAlignment
in interface IAlignmentConstants
public void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment
in interface IAlignmentConstants
pHorizontalAlignment
- the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment
in interface IAlignmentConstants
public void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment
in interface IAlignmentConstants
pVerticalAlignment
- the new vertical alignmentpublic int getHorizontalGap()
getHorizontalGap
in interface ILayout<IFormLayout.IConstraints>
public void setHorizontalGap(int pHgap)
setHorizontalGap
in interface ILayout<IFormLayout.IConstraints>
pHgap
- the horizontal gap between components.public int getVerticalGap()
getVerticalGap
in interface ILayout<IFormLayout.IConstraints>
public void setVerticalGap(int pVgap)
setVerticalGap
in interface ILayout<IFormLayout.IConstraints>
pVgap
- the vertical gap between componentspublic IInsets getMargins()
getMargins
in interface ILayout<IFormLayout.IConstraints>
public void setMargins(IInsets pMargins)
setMargins
in interface ILayout<IFormLayout.IConstraints>
pMargins
- the margins.public int getNewlineCount()
getNewlineCount
in interface IFormLayout
public void setNewlineCount(int pNewlineCount)
setNewlineCount
in interface IFormLayout
pNewlineCount
- the new line count.public IFormLayout.IAnchor getLeftAnchor()
getLeftAnchor
in interface IFormLayout
public IFormLayout.IAnchor getRightAnchor()
getRightAnchor
in interface IFormLayout
public IFormLayout.IAnchor getTopAnchor()
getTopAnchor
in interface IFormLayout
public IFormLayout.IAnchor getBottomAnchor()
getBottomAnchor
in interface IFormLayout
public IFormLayout.IAnchor getLeftMarginAnchor()
getLeftMarginAnchor
in interface IFormLayout
public IFormLayout.IAnchor getRightMarginAnchor()
getRightMarginAnchor
in interface IFormLayout
public IFormLayout.IAnchor getTopMarginAnchor()
getTopMarginAnchor
in interface IFormLayout
public IFormLayout.IAnchor getBottomMarginAnchor()
getBottomMarginAnchor
in interface IFormLayout
public IFormLayout.IAnchor[] getHorizontalAnchors()
getHorizontalAnchors
in interface IFormLayout
public IFormLayout.IAnchor[] getVerticalAnchors()
getVerticalAnchors
in interface IFormLayout
public IFormLayout.IConstraints getConstraints(IComponent pComponent)
IComponent
.
getConstraints
in interface ILayout<IFormLayout.IConstraints>
pComponent
- the IComponent
to be queried
IComponent
,
or null if component is null or is not present
in this layoutpublic void setConstraints(IComponent pComponent, IFormLayout.IConstraints pConstraints)
IComponent
.
setConstraints
in interface ILayout<IFormLayout.IConstraints>
pComponent
- the IComponent
to be queriedpConstraints
- the constraint for the specified IComponent
,
or null if component is null or is not present
in this layoutpublic IFormLayout.IAnchor createAnchor(IFormLayout.IAnchor pRelatedAnchor)
createAnchor
in interface IFormLayout
pRelatedAnchor
- the related anchor for this anchor.
public IFormLayout.IAnchor createAnchor(IFormLayout.IAnchor pRelatedAnchor, int pPosition)
createAnchor
in interface IFormLayout
pRelatedAnchor
- the related anchor for this anchor.pPosition
- the position relative to the related anchor.
public IFormLayout.IAnchor createAnchor(IFormLayout.IAnchor pRelatedAnchor, IFormLayout.IAnchor pSecondRelatedAnchor, float pRelativePosition)
createAnchor
in interface IFormLayout
pRelatedAnchor
- the related anchor for this anchor.pSecondRelatedAnchor
- the second related anchor for this anchor.pRelativePosition
- the relative position between first and second anchor.
public IFormLayout.IConstraints getConstraints(int pColumn, int pRow)
getConstraints
in interface IFormLayout
pColumn
- the column.pRow
- the row.
public IFormLayout.IConstraints getConstraints(int pBeginColumn, int pBeginRow, int pEndColumn, int pEndRow)
getConstraints
in interface IFormLayout
pBeginColumn
- the column.pBeginRow
- the row.pEndColumn
- the column count.pEndRow
- the row count.
public IFormLayout.IConstraints getConstraints(IFormLayout.IAnchor pTopAnchor, IFormLayout.IAnchor pLeftAnchor, IFormLayout.IAnchor pBottomAnchor, IFormLayout.IAnchor pRightAnchor)
getConstraints
in interface IFormLayout
pTopAnchor
- the top anchor.pLeftAnchor
- the left anchor.pBottomAnchor
- the bottom anchor.pRightAnchor
- the right anchor.
public IFormLayout.IConstraints getConstraints(IFormLayout.IAnchor pTopAnchor, IFormLayout.IAnchor pLeftAnchor)
pTopAnchor
- the top anchorpLeftAnchor
- the left anchor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |