|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.layout.AbstractLayoutManager
The AbstractLayoutManager class defines the base functionality required in a LayoutManager. This class contains a HashMap of Components and constraints, as well as some helper functions to aid layout.
Field Summary | |
protected java.util.HashMap |
componentMap
the map of components to constaints, where the Component is the key. |
protected java.lang.ref.WeakReference |
layoutManageableWR
The LayoutManagerable associated with this LayoutManager |
Constructor Summary | |
AbstractLayoutManager()
AbstractLayoutManager constructor. |
Method Summary | |
void |
addLayoutComponent(nextapp.echo.Component comp,
java.lang.Object constraints)
Adds a component to the LayoutManager with the specified contraints object. |
nextapp.echo.Component |
getComponent(java.lang.Object constraints)
Returns the Component associated with the contraints object or null if there is no association. |
java.util.Map |
getComponentMap()
returns a map of the constraint/component. |
java.lang.Object |
getContraints(nextapp.echo.Component comp)
Returns the contraints object associated to the given component or null if there is no association. |
LayoutManageable |
getLayoutManageable()
This lifecycle method is called to retrieve the LayoutManageable component that is currently associated with this LayoutManager. |
void |
invalidateLayout(nextapp.echo.Component targetComp)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
removeLayoutComponent(nextapp.echo.Component comp)
Removes a component from the LayoutManager. |
void |
setLayoutManageable(LayoutManageable layoutManageable)
This lifecycle method is called to inform the LayoutManager if its associated LayoutManageable component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.HashMap componentMap
protected transient java.lang.ref.WeakReference layoutManageableWR
Constructor Detail |
public AbstractLayoutManager()
Method Detail |
public void addLayoutComponent(nextapp.echo.Component comp, java.lang.Object constraints)
This method is not intended to be called by any other than an LayoutManageable during Component add().
The contraints object is allowed to be null.
addLayoutComponent
in interface LayoutManager
public nextapp.echo.Component getComponent(java.lang.Object constraints)
getComponent
in interface LayoutManager
public java.util.Map getComponentMap()
public java.lang.Object getContraints(nextapp.echo.Component comp)
getContraints
in interface LayoutManager
public LayoutManageable getLayoutManageable()
getLayoutManageable
in interface LayoutManager
public void invalidateLayout(nextapp.echo.Component targetComp)
invalidateLayout
in interface LayoutManager
public void removeLayoutComponent(nextapp.echo.Component comp)
This method is not intended to be called by any other than an LayoutManageable during Component add().
removeLayoutComponent
in interface LayoutManager
public void setLayoutManageable(LayoutManageable layoutManageable)
setLayoutManageable
in interface LayoutManager
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |