|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.layout.WebFormLayout.WebAnchor
public static class WebFormLayout.WebAnchor
The WebAnchor gives the possible horizontal and vertical positions.
| Field Summary |
|---|
| Fields inherited from interface javax.rad.ui.layout.IFormLayout.IAnchor |
|---|
HORIZONTAL, VERTICAL |
| Constructor Summary | |
|---|---|
|
WebFormLayout.WebAnchor(WebFormLayout.WebAnchor pRelatedAnchor)
Constructs an anchor relative to pRelatedAnchor with pPosition pixels. |
|
WebFormLayout.WebAnchor(WebFormLayout.WebAnchor pRelatedAnchor,
int pPosition)
Constructs an anchor relative to pRelatedAnchor with pPosition pixels. |
|
WebFormLayout.WebAnchor(WebFormLayout.WebAnchor pRelatedAnchor,
WebFormLayout.WebAnchor pSecondRelatedAnchor,
float pRelativePosition)
Constructs an centered anchor between the related and second related anchor. |
protected |
WebFormLayout.WebAnchor(WebFormLayout pLayout,
int pOrientation,
String pName)
Constructs a border anchor for this layout. |
| Method Summary | |
|---|---|
int |
getAbsolutePosition()
Returns the absolute position of this Anchor in this FormLayout. |
String |
getAsString()
Gets this Object as String. |
WebFormLayout |
getLayout()
Returns the layout to which this anchor belongs. |
int |
getOrientation()
Returns whether the orientation of this Anchor is HORIZONTAL or VERTICAL. |
int |
getPosition()
Returns the position of this Anchor. |
WebFormLayout.WebAnchor |
getRelatedAnchor()
Returns the related Anchor. |
float |
getRelativePosition()
Returns the position of this Anchor. |
IFormLayout.IAnchor |
getSecondRelatedAnchor()
Returns the second related Anchor. |
boolean |
isAutoSize()
Returns true, if the position of this anchor is calculated automatically. |
void |
setAutoSize(boolean pAutoSize)
Sets, if the position of this anchor is calculated automatically. |
void |
setPosition(int pPosition)
Sets the position of this Anchor. |
void |
setRelativePosition(float pRelativePosition)
Sets the position of this 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 |
|---|
protected WebFormLayout.WebAnchor(WebFormLayout pLayout,
int pOrientation,
String pName)
pLayout - the layout.pOrientation - the orientation.pName - the anchor name.public WebFormLayout.WebAnchor(WebFormLayout.WebAnchor pRelatedAnchor)
pRelatedAnchor - the related anchor for this anchor.
public WebFormLayout.WebAnchor(WebFormLayout.WebAnchor pRelatedAnchor,
int pPosition)
pRelatedAnchor - the related anchor for this anchor.pPosition - the position relative to the related anchor.
public WebFormLayout.WebAnchor(WebFormLayout.WebAnchor pRelatedAnchor,
WebFormLayout.WebAnchor pSecondRelatedAnchor,
float pRelativePosition)
pRelatedAnchor - the related anchor for this anchor.pSecondRelatedAnchor - the second related anchor for this anchor.pRelativePosition - the relative position between first and second anchor.| Method Detail |
|---|
public String getAsString()
getAsString in class WebResourcepublic WebFormLayout getLayout()
getLayout in interface IFormLayout.IAnchorpublic int getOrientation()
HORIZONTAL or VERTICAL.
getOrientation in interface IFormLayout.IAnchorpublic WebFormLayout.WebAnchor getRelatedAnchor()
getRelatedAnchor in interface IFormLayout.IAnchorpublic boolean isAutoSize()
isAutoSize in interface IFormLayout.IAnchorpublic void setAutoSize(boolean pAutoSize)
setAutoSize in interface IFormLayout.IAnchorpAutoSize - the fixed to set.public int getPosition()
getPosition in interface IFormLayout.IAnchorpublic void setPosition(int pPosition)
setPosition in interface IFormLayout.IAnchorpPosition - the position to setpublic IFormLayout.IAnchor getSecondRelatedAnchor()
getSecondRelatedAnchor in interface IFormLayout.IAnchorpublic float getRelativePosition()
getRelativePosition in interface IFormLayout.IAnchorpublic void setRelativePosition(float pRelativePosition)
setRelativePosition in interface IFormLayout.IAnchorpRelativePosition - the relative positionpublic int getAbsolutePosition()
getAbsolutePosition in interface IFormLayout.IAnchor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||