|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.docking.util.AbstractViewMap
Base class for view maps.
Constructor Summary | |
AbstractViewMap()
|
Method Summary | |
boolean |
contains(View view)
Returns true if this view map contains the view. |
View |
getViewAtIndex(int index)
Returns the view at a specific index. |
int |
getViewCount()
Returns the number of views in this map. |
ViewFactory[] |
getViewFactories()
Returns the view factories. |
View |
readView(ObjectInputStream in)
Reads and returns a view. |
void |
writeView(View view,
ObjectOutputStream out)
Writes a view to a stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractViewMap()
Method Detail |
public int getViewCount()
public View getViewAtIndex(int index)
index
- the view index
public ViewFactory[] getViewFactories()
ViewFactoryManager
getViewFactories
in interface ViewFactoryManager
public boolean contains(View view)
view
- the view
public void writeView(View view, ObjectOutputStream out) throws IOException
ViewSerializer
writeView
in interface ViewSerializer
view
- the view to writeout
- the stream on which to write the view
IOException
- if there is a stream errorpublic View readView(ObjectInputStream in) throws IOException
ViewSerializer
ViewSerializer.writeView(net.infonode.docking.View, java.io.ObjectOutputStream)
method.
Note that the view property values are read automatically, so this method should not read them.
This method should return null if the serialized view can't be resolved.
readView
in interface ViewSerializer
in
- the stream from which to read the view state
IOException
- if there is a stream error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |