|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.docking.util.AbstractViewMap
net.infonode.docking.util.ViewMap
A map of views that handles view serialization by assigning an integer id to each view. The id is unique for each view in the map. To guarantee serialization compatibility a view id must remain constant.
Constructor Summary | |
ViewMap()
Constructor. |
|
ViewMap(View[] views)
Utility constructor that creates a map with a number of views. |
Method Summary | |
void |
addView(int id,
View view)
Adds a view to the map. |
View |
getView(int id)
Returns the view with a specific id. |
void |
removeView(int id)
Removes a view with a specific id from the map. |
Methods inherited from class net.infonode.docking.util.AbstractViewMap |
contains, getViewAtIndex, getViewCount, getViewFactories, readView, writeView |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ViewMap()
public ViewMap(View[] views)
views
- the views to add to the mapMethod Detail |
public void addView(int id, View view)
id
- the view idview
- the viewpublic void removeView(int id)
id
- the view idpublic View getView(int id)
id
- the view id
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |