|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UILayout<IFlowLayout,Object>
javax.rad.genui.layout.UIFlowLayout
public class UIFlowLayout
Platform and technology independent FlowLayout. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .
Field Summary |
---|
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
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 | |
---|---|
|
UIFlowLayout()
Creates a new instance of UIFlowLayout . |
protected |
UIFlowLayout(IFlowLayout pLayout)
Creates a new instance of UIFlowLayout with the given
layout. |
|
UIFlowLayout(int pOrientation)
Creates a new instance of UIFlowLayout . |
|
UIFlowLayout(int pOrientation,
int pHorizontalGap,
int pVerticalGap)
Creates a new instance of UIFlowLayout with a given orientation and default
gaps. |
Method Summary | |
---|---|
int |
getComponentAlignment()
Gets the alignment between the components. |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
int |
getOrientation()
Gets the orientation of this flow layout. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
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 |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
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. |
Methods inherited from class javax.rad.genui.UILayout |
---|
getConstraints, getHorizontalGap, getMargins, getVerticalGap, setConstraints, setHorizontalGap, setMargins, setMargins, setVerticalGap |
Methods inherited from class javax.rad.genui.UIResource |
---|
equals, getResource, getUIResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.ILayout |
---|
getConstraints, getHorizontalGap, getMargins, getVerticalGap, setConstraints, setHorizontalGap, setMargins, setVerticalGap |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public UIFlowLayout()
UIFlowLayout
.
IFlowLayout
protected UIFlowLayout(IFlowLayout pLayout)
UIFlowLayout
with the given
layout.
pLayout
- the layoutIFlowLayout
public UIFlowLayout(int pOrientation)
UIFlowLayout
.
pOrientation
- the orientation.IFlowLayout
public UIFlowLayout(int pOrientation, int pHorizontalGap, int pVerticalGap)
UIFlowLayout
with a given orientation and default
gaps.
pOrientation
- the orientation.pHorizontalGap
- the horizontal gap.pVerticalGap
- the vertical gap.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 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
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |