com.tirsen.angkor.widget
Class Form

java.lang.Object
  |
  +--com.tirsen.angkor.Component
        |
        +--com.tirsen.angkor.widget.Container
              |
              +--com.tirsen.angkor.widget.Form
All Implemented Interfaces:
java.io.Serializable, View

public class Form
extends Container

A form. Sends an action event when it is has been submitted regardless wheather any button was pressed.

Version:
$Revision: 1.4 $
Author:
Jon Tirsén (tirsen@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.tirsen.angkor.widget.Container
children
 
Constructor Summary
Form()
           
 
Method Summary
 void parse(RenderContext context)
          When a view has registered during rendering for parsing in the RenderContext the context will call this method on the next request.
 void render(RenderContext context)
          Render this view on the given context if the view is visible.
 void setDefaultButton(ActionSource defaultButton)
           
 
Methods inherited from class com.tirsen.angkor.widget.Container
add, add, createChildren, getChildren, getNumberOfChildren, isChildrenCreated, iterateAllElements, iterateCollection, maybeCreateChildren, remove, renderChildren
 
Methods inherited from class com.tirsen.angkor.Component
allocateUniqueId, getAttribute, getContainer, getId, getRenderContext, getVisibleIndex, isDebugTables, isParsing, isVisible, setAttribute, setContainer, setId, setVisible, uniqueId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Form

public Form()
Method Detail

setDefaultButton

public void setDefaultButton(ActionSource defaultButton)

render

public void render(RenderContext context)
            throws java.io.IOException
Description copied from interface: View
Render this view on the given context if the view is visible. Performed during render-phase.

Specified by:
render in interface View
Overrides:
render in class Container
java.io.IOException
See Also:
View.setVisible(boolean), View.isVisible()

parse

public void parse(RenderContext context)
Description copied from interface: View
When a view has registered during rendering for parsing in the RenderContext the context will call this method on the next request. The view is responsible for parsing the request based on it's unique id and update models and sending events based on the request. In most cases the EventQueue should be used to send the events. This ensures that the models are all correctly updated before the events are actually processed. This is important since controllers (whom processes the events) must rely on this to process events correctly.

Specified by:
parse in interface View
Overrides:
parse in class Container


Copyright © 2002-2002 . All Rights Reserved.