|
||||||||||
| 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.StringViewMap
public class StringViewMap
A map of views that handles view serialization by assigning a string 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 | |
|---|---|
StringViewMap()
Constructor. |
|
StringViewMap(View[] views)
Utility constructor that creates a map with a number of views. |
|
| Method Summary | |
|---|---|
void |
addView(java.lang.String id,
View view)
Adds a view to the map. |
void |
addView(View view)
Adds a view to the map. |
View |
getView(java.lang.String id)
Returns the view with a specific id. |
protected java.lang.Object |
readViewId(java.io.ObjectInputStream in)
|
void |
removeView(java.lang.String id)
Removes a view with a specific id from the map. |
protected void |
writeViewId(java.lang.Object id,
java.io.ObjectOutputStream out)
|
| Methods inherited from class net.infonode.docking.util.AbstractViewMap |
|---|
addView, contains, getView, getViewAtIndex, getViewCount, getViewFactories, readView, removeView, writeView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringViewMap()
public StringViewMap(View[] views)
views - the views to add to the map| Method Detail |
|---|
public void addView(View view)
view - the view
public void addView(java.lang.String id,
View view)
id - the view idview - the viewpublic void removeView(java.lang.String id)
id - the view idpublic View getView(java.lang.String id)
id - the view id
protected void writeViewId(java.lang.Object id,
java.io.ObjectOutputStream out)
throws java.io.IOException
writeViewId in class AbstractViewMapjava.io.IOException
protected java.lang.Object readViewId(java.io.ObjectInputStream in)
throws java.io.IOException
readViewId in class AbstractViewMapjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||