net.wotonomy.web
Class WOElement

java.lang.Object
  extended by net.wotonomy.web.WOElement
All Implemented Interfaces:
java.io.Serializable, WOActionResults
Direct Known Subclasses:
WOComponent, WODynamicElement

public abstract class WOElement
extends java.lang.Object
implements WOActionResults, java.io.Serializable

This class represents a static or dynamic portion of the content returned to a request. Each request walks a tree of WOElements to generate a response.

Version:
$Revision: 905 $
Author:
michael@mpowers.net, $Author: cgruber $
See Also:
Serialized Form

Constructor Summary
WOElement()
          Default constructor.
 
Method Summary
 void appendToResponse(WOResponse aResponse, WOContext aContext)
          This method is called on all elements of the content tree to build a response to a user request.
 WOActionResults invokeAction(WORequest aRequest, WOContext aContext)
          This method is called on all objects and elements of the application until a non-null value is returned.
 void takeValuesFromRequest(WORequest aRequest, WOContext aContext)
          This method is called to retrieve user-entered data from the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.wotonomy.web.WOActionResults
generateResponse
 

Constructor Detail

WOElement

public WOElement()
Default constructor. Performs necessary initialization.

Method Detail

takeValuesFromRequest

public void takeValuesFromRequest(WORequest aRequest,
                                  WOContext aContext)
This method is called to retrieve user-entered data from the request. WOElements should retrieve data from the request based on their elementID and set values in the context's current WOComponent, typically those values that are associated with the element in the binding. This implementation does nothing.


invokeAction

public WOActionResults invokeAction(WORequest aRequest,
                                    WOContext aContext)
This method is called on all objects and elements of the application until a non-null value is returned. WOElements should first check to see if they are the target of an action by checking the WOContext's senderID to see if it matches this element's elementID. If this element is the target, it should perform an appropriate action on the context's current WOComponent, usually the action specified in the binding, and return the result of that action. This implementation returns null.


appendToResponse

public void appendToResponse(WOResponse aResponse,
                             WOContext aContext)
This method is called on all elements of the content tree to build a response to a user request. The message should be forwarded to any child elements so that the entire tree is traversed. This implementation does nothing.



Copyright © 2006 null. All Rights Reserved.