com.sibvisions.rad.ui.web.impl.layout
Class WebFormLayout.WebConstraints

java.lang.Object
  extended by com.sibvisions.rad.ui.web.impl.WebResource
      extended by com.sibvisions.rad.ui.web.impl.layout.WebFormLayout.WebConstraints
All Implemented Interfaces:
IResource, IFormLayout.IConstraints
Enclosing class:
WebFormLayout

public static class WebFormLayout.WebConstraints
extends WebResource
implements IFormLayout.IConstraints

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


Constructor Summary
WebFormLayout.WebConstraints(WebFormLayout.WebAnchor pTopAnchor, WebFormLayout.WebAnchor pLeftAnchor, WebFormLayout.WebAnchor pBottomAnchor, WebFormLayout.WebAnchor pRightAnchor)
          Creates the default constraints for the given anchors.
 
Method Summary
 String getAsString()
          Gets this Object as String.
 WebFormLayout.WebAnchor getBottomAnchor()
          Returns the bottom anchor.
 WebFormLayout.WebAnchor getLeftAnchor()
          Returns the left anchor.
 WebFormLayout.WebAnchor getRightAnchor()
          Returns the right anchor.
 WebFormLayout.WebAnchor 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.web.impl.WebResource
getNullableAsString, getResource, setAsString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

WebFormLayout.WebConstraints

public WebFormLayout.WebConstraints(WebFormLayout.WebAnchor pTopAnchor,
                                    WebFormLayout.WebAnchor pLeftAnchor,
                                    WebFormLayout.WebAnchor pBottomAnchor,
                                    WebFormLayout.WebAnchor pRightAnchor)
Creates the default constraints for the given anchors.

Parameters:
pTopAnchor - the top anchor.
pLeftAnchor - the left anchor.
pBottomAnchor - the bottom anchor.
pRightAnchor - the right anchor.
Method Detail

getLeftAnchor

public WebFormLayout.WebAnchor 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 WebFormLayout.WebAnchor 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 WebFormLayout.WebAnchor 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 WebFormLayout.WebAnchor 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

getAsString

public String getAsString()
Gets this Object as String.

Specified by:
getAsString in class WebResource
Returns:
the String.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.