|
||||||||||
| 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.WebLayout<CE>
CE - the Contraint type.public abstract class WebLayout<CE>
Web server implementation of ILayout.
| Field Summary | |
|---|---|
protected int |
horizontalGap
the horizontal gap. |
protected WebInsets |
margins
the margins of the layout. |
protected int |
verticalGap
the vertical gap. |
| Constructor Summary | |
|---|---|
protected |
WebLayout()
Creates a new instance of WebLayout. |
| Method Summary | |
|---|---|
String |
getAsString()
Gets this Object as String. |
CE |
getConstraints(IComponent pComponent)
Gets the constraints for the specified IComponent. |
int |
getHorizontalGap()
Returns the horizontal gap between components. |
WebInsets |
getMargins()
Gets the margins. |
int |
getVerticalGap()
Returns the vertical gap between components. |
void |
setComponentConstraints(IComponent pComponent,
Object pConstraints)
Converts an added Constraint to the correct Constraint type CE. |
void |
setConstraints(IComponent pComponent,
CE 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.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 |
| Field Detail |
|---|
protected WebInsets margins
protected int horizontalGap
protected int verticalGap
| Constructor Detail |
|---|
protected WebLayout()
WebLayout.
ILayout| Method Detail |
|---|
public String getAsString()
getAsString in class WebResourcepublic CE getConstraints(IComponent pComponent)
IComponent.
getConstraints in interface ILayout<CE>pComponent - the IComponent to be queried
IComponent,
or null if component is null or is not present
in this layout
public void setConstraints(IComponent pComponent,
CE pConstraints)
IComponent.
setConstraints in interface ILayout<CE>pComponent - the IComponent to be queriedpConstraints - the constraint for the specified IComponent,
or null if component is null or is not present
in this layout
public void setComponentConstraints(IComponent pComponent,
Object pConstraints)
pComponent - the component.pConstraints - the constraints.public WebInsets getMargins()
getMargins in interface ILayout<CE>public void setMargins(IInsets pMargins)
setMargins in interface ILayout<CE>pMargins - the margins.public int getHorizontalGap()
getHorizontalGap in interface ILayout<CE>public void setHorizontalGap(int pHorizontalGap)
setHorizontalGap in interface ILayout<CE>pHorizontalGap - the horizontal gap between components.public int getVerticalGap()
getVerticalGap in interface ILayout<CE>public void setVerticalGap(int pVerticalGap)
setVerticalGap in interface ILayout<CE>pVerticalGap - the vertical gap between components
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||