com.sibvisions.rad.ui.swing.impl.layout
Class AwtFormLayout.AwtConstraints

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<JVxFormLayout.Constraint>
      extended by com.sibvisions.rad.ui.swing.impl.layout.AwtFormLayout.AwtConstraints
All Implemented Interfaces:
Cloneable, IResource, IFormLayout.IConstraints
Enclosing class:
AwtFormLayout

public static class AwtFormLayout.AwtConstraints
extends AwtResource<JVxFormLayout.Constraint>
implements IFormLayout.IConstraints, Cloneable

The Constraint stores the top, left, bottom and right Anchor for layouting a component.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Constructor Summary
protected AwtFormLayout.AwtConstraints(AwtFormLayout pLayout, JVxFormLayout.Constraint pConstraints)
          Constructs a new AwtConstraint.
 
Method Summary
 IFormLayout.IAnchor getBottomAnchor()
          Returns the bottom anchor.
 IFormLayout.IAnchor getLeftAnchor()
          Returns the left anchor.
 IFormLayout.IAnchor getRightAnchor()
          Returns the right anchor.
 IFormLayout.IAnchor getTopAnchor()
          Returns the top anchor.
 void setBottomAnchor(IFormLayout.IAnchor pBottomAnchor)
          Sets the bottom anchor.
 void setLeftAnchor(IFormLayout.IAnchor pLeftAnchor)
          Sets the left anchor.
 void setRightAnchor(IFormLayout.IAnchor pRightAnchor)
          Sets the right anchor.
 void setTopAnchor(IFormLayout.IAnchor pTopAnchor)
          Sets the top anchor.
 
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

AwtFormLayout.AwtConstraints

protected AwtFormLayout.AwtConstraints(AwtFormLayout pLayout,
                                       JVxFormLayout.Constraint pConstraints)
Constructs a new AwtConstraint.

Parameters:
pLayout - the layout.
pConstraints - the JVxFormLayout.Constraint.
Method Detail

getLeftAnchor

public IFormLayout.IAnchor getLeftAnchor()
Returns the left anchor.

Specified by:
getLeftAnchor in interface IFormLayout.IConstraints
Returns:
the left anchor.

setLeftAnchor

public void setLeftAnchor(IFormLayout.IAnchor pLeftAnchor)
Sets the left anchor.

Specified by:
setLeftAnchor in interface IFormLayout.IConstraints
Parameters:
pLeftAnchor - left to set

getRightAnchor

public IFormLayout.IAnchor getRightAnchor()
Returns the right anchor.

Specified by:
getRightAnchor in interface IFormLayout.IConstraints
Returns:
the right anchor.

setRightAnchor

public void setRightAnchor(IFormLayout.IAnchor pRightAnchor)
Sets the right anchor.

Specified by:
setRightAnchor in interface IFormLayout.IConstraints
Parameters:
pRightAnchor - the right anchor.

getTopAnchor

public IFormLayout.IAnchor getTopAnchor()
Returns the top anchor.

Specified by:
getTopAnchor in interface IFormLayout.IConstraints
Returns:
the top anchor.

setTopAnchor

public void setTopAnchor(IFormLayout.IAnchor pTopAnchor)
Sets the top anchor.

Specified by:
setTopAnchor in interface IFormLayout.IConstraints
Parameters:
pTopAnchor - the top anchor

getBottomAnchor

public IFormLayout.IAnchor getBottomAnchor()
Returns the bottom anchor.

Specified by:
getBottomAnchor in interface IFormLayout.IConstraints
Returns:
the bottom anchor.

setBottomAnchor

public void setBottomAnchor(IFormLayout.IAnchor pBottomAnchor)
Sets the bottom anchor.

Specified by:
setBottomAnchor in interface IFormLayout.IConstraints
Parameters:
pBottomAnchor - the bottom to set


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.