javax.rad.ui.layout
Interface IFlowLayout

All Superinterfaces:
IAlignmentConstants, ILayout<Object>, IResource
All Known Implementing Classes:
AwtFlowLayout, UIFlowLayout

public interface IFlowLayout
extends ILayout<Object>, IAlignmentConstants

Platform and technology independent flow layout definition. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .


Field Summary
static int HORIZONTAL
          Constant for horizontal flow layout.
static int VERTICAL
          Constant for vertical vertical layout.
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Method Summary
 int getComponentAlignment()
          Gets the alignment between the components.
 int getOrientation()
          Gets the orientation of this flow layout.
 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 setOrientation(int pOrientation)
          Sets the orientation of this flow layout.
 void setSquareComponents(boolean pSquareComponents)
          Sets the square components mode.
 
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
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Field Detail

HORIZONTAL

static final int HORIZONTAL
Constant for horizontal flow layout.

See Also:
Constant Field Values

VERTICAL

static final int VERTICAL
Constant for vertical vertical layout.

See Also:
Constant Field Values
Method Detail

getOrientation

int getOrientation()
Gets the orientation of this flow layout. It can be HORIZONTAL or VERTICAL.

Returns:
the orientation.

setOrientation

void setOrientation(int pOrientation)
Sets the orientation of this flow layout. It can be HORIZONTAL or VERTICAL.

Parameters:
pOrientation - the orientation.

getComponentAlignment

int getComponentAlignment()
Gets the alignment between the components. For horizontal orientation the component alignment can be ALIGN_TOP, ALIGN_CENTER, ALIGN_BOTTOM or ALIGN_STRETCH for vertical orientation ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT or ALIGN_STRETCH. Switching the orientation maps top to left and bottom to right alignment.

Returns:
the component alignment.

setComponentAlignment

void setComponentAlignment(int pComponentAlignment)
Sets the alignment between the components. For horizontal orientation the component alignment can be ALIGN_TOP, ALIGN_CENTER, ALIGN_BOTTOM or ALIGN_STRETCH for vertical orientation ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT or ALIGN_STRETCH. Switching the orientation maps top to left and bottom to right alignment.

Parameters:
pComponentAlignment - the component alignment.

isSquareComponents

boolean isSquareComponents()
Gets the square components mode. If it is true, all components are sqared.

Returns:
the square components mode.

setSquareComponents

void setSquareComponents(boolean pSquareComponents)
Sets the square components mode. If it is true, all components are sqared.

Parameters:
pSquareComponents - the square components mode.

isAutoWrap

boolean isAutoWrap()
Gets the current state of the automatic wrap mode.

Returns:
true if the automatic wrap mode is enabled; otherwise false

setAutoWrap

void setAutoWrap(boolean pAutoWrap)
Sets the automatic wrap mode. This means that the layout acts like the FlowLayout.

Parameters:
pAutoWrap - true to enabled the auto wrap mode, false otherwise


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.