com.sibvisions.rad.ui.swing.impl.layout
Class AwtBorderLayout

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<JVxBorderLayout>
      extended by com.sibvisions.rad.ui.swing.impl.layout.AwtBorderLayout
All Implemented Interfaces:
ILayout<String>, IResource, IBorderLayout

public class AwtBorderLayout
extends AwtResource<JVxBorderLayout>
implements IBorderLayout

The AwtBorderLayout is a platform independent BorderLayout impelementation.

See Also:
BorderLayout

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Fields inherited from interface javax.rad.ui.layout.IBorderLayout
CENTER, EAST, NORTH, SOUTH, WEST
 
Constructor Summary
AwtBorderLayout()
          Creates a new instance of AwtBorderLayout based on an IBorderLayout implementation.
 
Method Summary
 String getConstraints(IComponent pComponent)
          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 pComponent, String 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 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

AwtBorderLayout

public AwtBorderLayout()
Creates a new instance of AwtBorderLayout based on an IBorderLayout implementation.

See Also:
IBorderLayout
Method Detail

getMargins

public IInsets getMargins()
Gets the margins.

Specified by:
getMargins in interface ILayout<String>
Returns:
the margins.

setMargins

public void setMargins(IInsets pMargins)
Sets the margins.

Specified by:
setMargins in interface ILayout<String>
Parameters:
pMargins - the margins.

getHorizontalGap

public int getHorizontalGap()
Returns the horizontal gap between components.

Specified by:
getHorizontalGap in interface ILayout<String>
Returns:
returns the horizontal gap between components.

setHorizontalGap

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

Specified by:
setHorizontalGap in interface ILayout<String>
Parameters:
pHorizontalGap - the horizontal gap between components.

getVerticalGap

public int getVerticalGap()
Returns the vertical gap between components.

Specified by:
getVerticalGap in interface ILayout<String>
Returns:
returns the vertical gap between components.

setVerticalGap

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

Specified by:
setVerticalGap in interface ILayout<String>
Parameters:
pVerticalGap - the vertical gap between components

getConstraints

public String getConstraints(IComponent pComponent)
Gets the constraints for the specified IComponent.

Specified by:
getConstraints in interface ILayout<String>
Parameters:
pComponent - 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

public void setConstraints(IComponent pComponent,
                           String pConstraints)
Gets the constraints for the specified IComponent.

Specified by:
setConstraints in interface ILayout<String>
Parameters:
pComponent - 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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.