net.wotonomy.web
Class WOForm

java.lang.Object
  extended by net.wotonomy.web.WOElement
      extended by net.wotonomy.web.WODynamicElement
          extended by net.wotonomy.web.WOForm
All Implemented Interfaces:
java.io.Serializable, WOActionResults

public class WOForm
extends WODynamicElement

Implements a FORM element with dynamic bindings.

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

Field Summary
 
Fields inherited from class net.wotonomy.web.WODynamicElement
associations, name, rootElement
 
Constructor Summary
WOForm()
           
WOForm(java.lang.String n, net.wotonomy.foundation.NSDictionary m, WOElement t)
           
 
Method Summary
 void appendToResponse(WOResponse r, WOContext c)
          This method is called on all elements of the content tree to build a response to a user request.
 java.lang.String directActionClass(WOContext c)
           
 java.lang.String directActionName(WOContext c)
           
 java.lang.String href(WOContext c)
           
 WOActionResults invokeAction(WORequest r, WOContext c)
          This method is called on all objects and elements of the application until a non-null value is returned.
 boolean multipleSubmit(WOContext c)
           
 void takeValuesFromRequest(WORequest aRequest, WOContext aContext)
          This method is called to retrieve user-entered data from the request.
 
Methods inherited from class net.wotonomy.web.WODynamicElement
generateResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOForm

public WOForm()

WOForm

public WOForm(java.lang.String n,
              net.wotonomy.foundation.NSDictionary m,
              WOElement t)
Method Detail

href

public java.lang.String href(WOContext c)

directActionName

public java.lang.String directActionName(WOContext c)

directActionClass

public java.lang.String directActionClass(WOContext c)

multipleSubmit

public boolean multipleSubmit(WOContext c)

takeValuesFromRequest

public void takeValuesFromRequest(WORequest aRequest,
                                  WOContext aContext)
Description copied from class: WODynamicElement
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.

Overrides:
takeValuesFromRequest in class WODynamicElement

appendToResponse

public void appendToResponse(WOResponse r,
                             WOContext c)
Description copied from class: WODynamicElement
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.

Overrides:
appendToResponse in class WODynamicElement

invokeAction

public WOActionResults invokeAction(WORequest r,
                                    WOContext c)
Description copied from class: WODynamicElement
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.

Overrides:
invokeAction in class WODynamicElement


Copyright © 2006 null. All Rights Reserved.