|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.docking.util.MixedViewHandler
public class MixedViewHandler
The mixed view map simplifies mixing static and dynamic views inside the same root window.
The static views are handled by an AbstractViewMap
and the dynamic views are handled
by an custom ViewSerializer
.
Field Summary | |
---|---|
private AbstractViewMap |
viewMap
|
private ViewSerializer |
viewSerializer
|
Constructor Summary | |
---|---|
MixedViewHandler(AbstractViewMap viewMap,
ViewSerializer viewSerializer)
Constructor. |
Method Summary | |
---|---|
ViewFactory[] |
getViewFactories()
Returns the view factories. |
View |
readView(java.io.ObjectInputStream in)
Reads and returns a view. |
void |
writeView(View view,
java.io.ObjectOutputStream out)
Writes a view to a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AbstractViewMap viewMap
private ViewSerializer viewSerializer
Constructor Detail |
---|
public MixedViewHandler(AbstractViewMap viewMap, ViewSerializer viewSerializer)
viewMap
- this map is first searched when serializing a viewviewSerializer
- is used if the view was not found in the viewMapMethod Detail |
---|
public ViewFactory[] getViewFactories()
ViewFactoryManager
getViewFactories
in interface ViewFactoryManager
public void writeView(View view, java.io.ObjectOutputStream out) throws java.io.IOException
ViewSerializer
writeView
in interface ViewSerializer
view
- the view to writeout
- the stream on which to write the view
java.io.IOException
- if there is a stream errorpublic View readView(java.io.ObjectInputStream in) throws java.io.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
java.io.IOException
- if there is a stream error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |