echoxul.view.impl
Class ViewContextStub

java.lang.Object
  extended byechoxul.view.impl.ViewContextStub
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ModelViewContextStub

public class ViewContextStub
extends java.lang.Object
implements java.io.Serializable

This class represents the stub part of a model ViewContext. This will retrieve the serialized ViewContext from the View and instantiate it as part of the containment hierarchy.

Author:
Terry Laurenzo
See Also:
Serialized Form

Constructor Summary
ViewContextStub()
          For Serialization
ViewContextStub(int staticReferenceKey)
           
 
Method Summary
 ViewContextImpl instantiate(View view, ViewContextImpl parent)
          Create a new instance of the ViewContext model and set its fields to be a part of the containment hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewContextStub

public ViewContextStub()
For Serialization


ViewContextStub

public ViewContextStub(int staticReferenceKey)
Parameters:
staticReferenceKey - - Key in the view to the byte[] array to deserialize
Throws:
ViewException
Method Detail

instantiate

public ViewContextImpl instantiate(View view,
                                   ViewContextImpl parent)
                            throws ViewException
Create a new instance of the ViewContext model and set its fields to be a part of the containment hierarchy. Note that this does NOT alter the parent. The returned reference must be added to the parent manually.

Parameters:
view -
parent -
Returns:
Throws:
ViewException - if the model ViewContext cannot be deserialized


Copyright © 2004 Terry Laurenzo. All Rights Reserved.