|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopoint.layout.AbstractLayoutManager
public class 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(Component comp,
java.lang.Object constraints)
Adds a component to the LayoutManager with the specified contraints object. |
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(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(Component targetComp)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
removeLayoutComponent(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(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 LayoutManagerpublic Component getComponent(java.lang.Object constraints)
getComponent in interface LayoutManagerpublic java.util.Map getComponentMap()
public java.lang.Object getContraints(Component comp)
getContraints in interface LayoutManagerpublic LayoutManageable getLayoutManageable()
getLayoutManageable in interface LayoutManagerpublic void invalidateLayout(Component targetComp)
invalidateLayout in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
This method is not intended to be called by any other than an LayoutManageable during Component add().
removeLayoutComponent in interface LayoutManagerpublic void setLayoutManageable(LayoutManageable layoutManageable)
setLayoutManageable in interface LayoutManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||