com.sibvisions.rad.ui.swing.ext.layout
Class JVxFormLayout.Constraint

java.lang.Object
  extended by com.sibvisions.rad.ui.swing.ext.layout.JVxFormLayout.Constraint
All Implemented Interfaces:
Cloneable
Enclosing class:
JVxFormLayout

public static class JVxFormLayout.Constraint
extends Object
implements Cloneable

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


Constructor Summary
JVxFormLayout.Constraint(JVxFormLayout.Anchor pTopAnchor, JVxFormLayout.Anchor pLeftAnchor)
          Constructs Constraints with the given anchors as bounds.
JVxFormLayout.Constraint(JVxFormLayout.Anchor pTopAnchor, JVxFormLayout.Anchor pLeftAnchor, JVxFormLayout.Anchor pBottomAnchor, JVxFormLayout.Anchor pRightAnchor)
          Constructs Constraints with the given anchors as bounds.
 
Method Summary
 JVxFormLayout.Anchor getBottomAnchor()
          Returns the bottom anchor.
 JVxFormLayout.Anchor getLeftAnchor()
          Returns the left anchor.
 JVxFormLayout.Anchor getRightAnchor()
          Returns the right anchor.
 JVxFormLayout.Anchor getTopAnchor()
          Returns the top anchor.
 void setBottomAnchor(JVxFormLayout.Anchor pBottomAnchor)
          Sets the bottom anchor.
 void setLeftAnchor(JVxFormLayout.Anchor pLeftAnchor)
          Sets the left anchor.
 void setRightAnchor(JVxFormLayout.Anchor pRightAnchor)
          Sets the right anchor.
 void setTopAnchor(JVxFormLayout.Anchor pTopAnchor)
          Sets the top anchor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVxFormLayout.Constraint

public JVxFormLayout.Constraint(JVxFormLayout.Anchor pTopAnchor,
                                JVxFormLayout.Anchor pLeftAnchor,
                                JVxFormLayout.Anchor pBottomAnchor,
                                JVxFormLayout.Anchor pRightAnchor)
Constructs Constraints with the given anchors as bounds.

Parameters:
pTopAnchor - the left anchor.
pLeftAnchor - the left anchor.
pBottomAnchor - the left anchor.
pRightAnchor - the left anchor.

JVxFormLayout.Constraint

public JVxFormLayout.Constraint(JVxFormLayout.Anchor pTopAnchor,
                                JVxFormLayout.Anchor pLeftAnchor)
Constructs Constraints with the given anchors as bounds.

Parameters:
pTopAnchor - the left anchor.
pLeftAnchor - the left anchor.
Method Detail

getLeftAnchor

public JVxFormLayout.Anchor getLeftAnchor()
Returns the left anchor.

Returns:
the left anchor.

setLeftAnchor

public void setLeftAnchor(JVxFormLayout.Anchor pLeftAnchor)
Sets the left anchor.

Parameters:
pLeftAnchor - left to set

getRightAnchor

public JVxFormLayout.Anchor getRightAnchor()
Returns the right anchor.

Returns:
the right anchor.

setRightAnchor

public void setRightAnchor(JVxFormLayout.Anchor pRightAnchor)
Sets the right anchor.

Parameters:
pRightAnchor - the right anchor.

getTopAnchor

public JVxFormLayout.Anchor getTopAnchor()
Returns the top anchor.

Returns:
the top anchor.

setTopAnchor

public void setTopAnchor(JVxFormLayout.Anchor pTopAnchor)
Sets the top anchor.

Parameters:
pTopAnchor - the top anchor

getBottomAnchor

public JVxFormLayout.Anchor getBottomAnchor()
Returns the bottom anchor.

Returns:
the bottom anchor.

setBottomAnchor

public void setBottomAnchor(JVxFormLayout.Anchor pBottomAnchor)
Sets the bottom anchor.

Parameters:
pBottomAnchor - the bottom to set


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.