|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UILayout<C,CO>
C - instance of ILayoutCO - type of the constraints.public abstract class UILayout<C extends ILayout<CO>,CO>
Platform and technology independent layout. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Constructor Summary | |
|---|---|
protected |
UILayout(C pLayout)
Creates a new instance of UILayout. |
| Method Summary | |
|---|---|
CO |
getConstraints(IComponent pComp)
Gets the constraints for the specified IComponent. |
int |
getHorizontalGap()
Returns the horizontal gap between components. |
IInsets |
getMargins()
Gets the margins. |
int |
getVerticalGap()
Returns the vertical gap between components. |
void |
setConstraints(IComponent pComp,
CO pConstraints)
Sets the constraints for the specified IComponent. |
void |
setHorizontalGap(int pHorizontalGap)
Sets the horizontal gap between components. |
void |
setMargins(IInsets pMargins)
Sets the margins. |
void |
setMargins(int pTop,
int pLeft,
int pBottom,
int pRight)
Sets the insets with primitive types. |
void |
setVerticalGap(int pVerticalGap)
Sets the vertical gap between components. |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
equals, eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getResource, getUIResource, hashCode, hasResourceHandler, putObject, 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 |
|---|
protected UILayout(C pLayout)
UILayout.
pLayout - the ILayout.ILayout| Method Detail |
|---|
public CO getConstraints(IComponent pComp)
IComponent.
getConstraints in interface ILayout<CO>pComp - the IComponent to be queried
IComponent,
or null if component is null or is not present
in this layout
public void setConstraints(IComponent pComp,
CO pConstraints)
IComponent.
setConstraints in interface ILayout<CO>pComp - the IComponentpConstraints - the new constraints for the specified IComponent.public IInsets getMargins()
getMargins in interface ILayout<CO>public void setMargins(IInsets pMargins)
setMargins in interface ILayout<CO>pMargins - the margins.
public void setMargins(int pTop,
int pLeft,
int pBottom,
int pRight)
pTop - the top insets.pLeft - the left insets.pBottom - the bottom insets.pRight - the right insets.public int getHorizontalGap()
getHorizontalGap in interface ILayout<CO>public void setHorizontalGap(int pHorizontalGap)
setHorizontalGap in interface ILayout<CO>pHorizontalGap - the horizontal gap between components.public int getVerticalGap()
getVerticalGap in interface ILayout<CO>public void setVerticalGap(int pVerticalGap)
setVerticalGap in interface ILayout<CO>pVerticalGap - the vertical gap between components
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||