diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-05-20 17:58:16 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-05-20 17:58:16 -0400 |
| commit | 40a9d99496e098562f090fb7ffce9e749011b131 (patch) | |
| tree | 437df24d65470582e943e494a52db8ed65a881ae /projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOElement.java | |
| parent | ff072dfe782f6f22123cd4ba050828d35c0d0fbd (diff) | |
Formatting pass
Diffstat (limited to 'projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOElement.java')
| -rw-r--r-- | projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOElement.java | 115 |
1 files changed, 51 insertions, 64 deletions
diff --git a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOElement.java b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOElement.java index 11944d3..184eeea 100644 --- a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOElement.java +++ b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOElement.java @@ -23,75 +23,62 @@ import java.io.Serializable; import net.wotonomy.foundation.NSDictionary; /** -* 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. -* -* @author michael@mpowers.net -* @author $Author: cgruber $ -* @version $Revision: 905 $ -*/ -public abstract class WOElement implements WOActionResults, 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. + * + * @author michael@mpowers.net + * @author $Author: cgruber $ + * @version $Revision: 905 $ + */ +public abstract class WOElement implements WOActionResults, Serializable { NSDictionary associations; - + + /** + * Default constructor. Performs necessary initialization. + */ + public WOElement() { + } + /** - * Default constructor. Performs necessary initialization. - */ - public WOElement() - { + * 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. + */ + public void takeValuesFromRequest(WORequest aRequest, WOContext aContext) { + // does nothing } /** - * 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. - */ - public void takeValuesFromRequest (WORequest aRequest, WOContext aContext) - { - // does nothing - } + * 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. + */ + public WOActionResults invokeAction(WORequest aRequest, WOContext aContext) { + return null; + } - /** - * 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. - */ - public WOActionResults invokeAction (WORequest aRequest, WOContext aContext) - { - return null; - } - - /** - * 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. - */ - public void appendToResponse (WOResponse aResponse, WOContext aContext) - { - // does nothing - } - - /** - * Package access only. Called to initialize the component with - * the proper context before the start of the request-response cycle. - * If the context has a current component, that component becomes - * this component's parent. - */ - void ensureAwakeInContext (WOContext aContext) - { - // does nothing - } + /** + * 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. + */ + public void appendToResponse(WOResponse aResponse, WOContext aContext) { + // does nothing + } + + /** + * Package access only. Called to initialize the component with the proper + * context before the start of the request-response cycle. If the context has a + * current component, that component becomes this component's parent. + */ + void ensureAwakeInContext(WOContext aContext) { + // does nothing + } - } |
