javax.rad.ui
Interface ILayout<CO>

Type Parameters:
CO - type of the constraints.
All Superinterfaces:
IResource
All Known Subinterfaces:
IBorderLayout, IFlowLayout, IFormLayout
All Known Implementing Classes:
AwtBorderLayout, AwtFlowLayout, AwtFormLayout, UIBorderLayout, UIFlowLayout, UIFormLayout, UILayout

public interface ILayout<CO>
extends IResource

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


Method Summary
 CO getConstraints(IComponent pComp)
          Gets the constraints for the specified IComponent.
 int getHorizontalGap()
          Returns the horizontal gap between components.
 IInsets getMargins()
          Gets the margins.
 int getVerticalGap()
          Returns the vertical gap between components.
 void setConstraints(IComponent pComp, CO pConstraints)
          Gets the constraints for the specified IComponent.
 void setHorizontalGap(int pHorizontalGap)
          Sets the horizontal gap between components.
 void setMargins(IInsets pMargins)
          Sets the margins.
 void setVerticalGap(int pVerticalGap)
          Sets the vertical gap between components.
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Method Detail

getConstraints

CO getConstraints(IComponent pComp)
Gets the constraints for the specified IComponent.

Parameters:
pComp - the IComponent to be queried
Returns:
the constraint for the specified IComponent, or null if component is null or is not present in this layout

setConstraints

void setConstraints(IComponent pComp,
                    CO pConstraints)
Gets the constraints for the specified IComponent.

Parameters:
pComp - the IComponent to be queried
pConstraints - the constraint for the specified IComponent, or null if component is null or is not present in this layout

getMargins

IInsets getMargins()
Gets the margins.

Returns:
the margins.

setMargins

void setMargins(IInsets pMargins)
Sets the margins.

Parameters:
pMargins - the margins.

getHorizontalGap

int getHorizontalGap()
Returns the horizontal gap between components.

Returns:
returns the horizontal gap between components.

setHorizontalGap

void setHorizontalGap(int pHorizontalGap)
Sets the horizontal gap between components.

Parameters:
pHorizontalGap - the horizontal gap between components.

getVerticalGap

int getVerticalGap()
Returns the vertical gap between components.

Returns:
returns the vertical gap between components.

setVerticalGap

void setVerticalGap(int pVerticalGap)
Sets the vertical gap between components.

Parameters:
pVerticalGap - the vertical gap between components


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.