|
||||||||||
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<JVxSequenceLayout>
com.sibvisions.rad.ui.swing.impl.layout.AwtFlowLayout
public class AwtFlowLayout
The AwtFormLayout
is a platform independent FlowLayout impelementation.
JVxSequenceLayout
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Fields inherited from interface javax.rad.ui.layout.IFlowLayout |
---|
HORIZONTAL, VERTICAL |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
AwtFlowLayout()
Creates a new instance of AwtSimpleFormLayout based on an
IFlowLayout implementation. |
Method Summary | |
---|---|
int |
getComponentAlignment()
Gets the alignment between the components. |
Object |
getConstraints(IComponent pComponent)
Gets the constraints for the specified IComponent . |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
int |
getHorizontalGap()
Returns the horizontal gap between components. |
IInsets |
getMargins()
Gets the margins. |
int |
getOrientation()
Gets the orientation of this flow layout. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
int |
getVerticalGap()
Returns the vertical gap between components. |
boolean |
isAutoWrap()
Gets the current state of the automatic wrap mode. |
boolean |
isSquareComponents()
Gets the square components mode. |
void |
setAutoWrap(boolean pAutoWrap)
Sets the automatic wrap mode. |
void |
setComponentAlignment(int pComponentAlignment)
Sets the alignment between the components. |
void |
setConstraints(IComponent pComponent,
Object 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 |
setOrientation(int pOrientation)
Sets the orientation of this flow layout. |
void |
setSquareComponents(boolean pSquareComponents)
Sets the square components mode. |
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 AwtFlowLayout()
AwtSimpleFormLayout
based on an
IFlowLayout
implementation.
IFlowLayout
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 getOrientation()
HORIZONTAL
or VERTICAL
.
getOrientation
in interface IFlowLayout
public void setOrientation(int pOrientation)
HORIZONTAL
or VERTICAL
.
setOrientation
in interface IFlowLayout
pOrientation
- the orientation.public int getComponentAlignment()
getComponentAlignment
in interface IFlowLayout
public void setComponentAlignment(int pComponentAlignment)
setComponentAlignment
in interface IFlowLayout
pComponentAlignment
- the component alignment.public boolean isSquareComponents()
isSquareComponents
in interface IFlowLayout
public void setSquareComponents(boolean pSquareComponents)
setSquareComponents
in interface IFlowLayout
pSquareComponents
- the square components mode.public int getHorizontalGap()
getHorizontalGap
in interface ILayout<Object>
public void setHorizontalGap(int pHgap)
setHorizontalGap
in interface ILayout<Object>
pHgap
- the horizontal gap between components.public int getVerticalGap()
getVerticalGap
in interface ILayout<Object>
public void setVerticalGap(int pVgap)
setVerticalGap
in interface ILayout<Object>
pVgap
- the vertical gap between componentspublic IInsets getMargins()
getMargins
in interface ILayout<Object>
public void setMargins(IInsets pMargins)
setMargins
in interface ILayout<Object>
pMargins
- the margins.public boolean isAutoWrap()
isAutoWrap
in interface IFlowLayout
true
if the automatic wrap mode is enabled; otherwise false
public void setAutoWrap(boolean pAutoWrap)
FlowLayout
.
setAutoWrap
in interface IFlowLayout
pAutoWrap
- true
to enabled the auto wrap mode, false
otherwisepublic Object getConstraints(IComponent pComponent)
IComponent
.
getConstraints
in interface ILayout<Object>
pComponent
- the IComponent
to be queried
IComponent
,
or null if component is null or is not present
in this layoutpublic void setConstraints(IComponent pComponent, Object pConstraints)
IComponent
.
setConstraints
in interface ILayout<Object>
pComponent
- the IComponent
to be queriedpConstraints
- the constraint for the specified IComponent
,
or null if component is null or is not present
in this layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |