| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.taursys.xml.Component
com.taursys.xml.Container
com.taursys.xml.DispatchingContainer
com.taursys.xml.DocumentElement
com.taursys.xml.Form
Form is a top level Container for applications.
| Field Summary | |
static java.lang.String | 
PARAMETER_MAP
 | 
| Constructor Summary | |
Form()
Constructs a new Form  | 
|
| Method Summary | |
 void | 
addCloseFormListener(CloseFormListener l)
Adds given listener to notification list for CloseFormEvents  | 
 void | 
addInitContextListener(InitContextListener l)
Adds given listener to notification list for InitContextEvents  | 
 void | 
addInitFormListener(InitFormListener l)
Adds given listener to notification list for InitFormEvents  | 
 void | 
addOpenFormListener(OpenFormListener l)
Adds given listener to notification list for OpenFormEvents  | 
protected  void | 
closeForm()
Closes the form and any resources it may have opened.  | 
protected  DocumentElementRenderer | 
createDefaultRenderer()
Creates the default DocumentElementRenderer for this component.  | 
protected  void | 
dispatchCloseForm()
Initiate the dispatch of the CloseFormEvent to registered
 nested Forms. | 
protected  void | 
dispatchInitContext()
This method is invoked by run to dispatch the formContext to nested Forms.  | 
protected  void | 
dispatchInitForm()
Initiate the dispatch of the InitFormEvent to registered
 nested Forms. | 
protected  void | 
dispatchOpenForm()
Initiate the dispatch of the OpenFormEvent to registered
 nested Forms. | 
protected  void | 
fireCloseFormReceived(CloseFormEvent e)
Notifies all registered listeners of a given CloseFormEvent  | 
protected  void | 
fireInitContextReceived(InitContextEvent e)
Notifies all registered listeners of a given InitContextEvent  | 
protected  void | 
fireInitFormReceived(InitFormEvent e)
Notifies all registered listeners of a given InitFormEvent  | 
protected  void | 
fireOpenFormReceived(OpenFormEvent e)
Notifies all registered listeners of a given OpenFormEvent  | 
 org.w3c.dom.Document | 
getDocument()
Returns the document for this form.  | 
 DocumentAdapter | 
getDocumentAdapter()
Gets the documentAdapter for this form.  | 
 DocumentAdapterBuilder | 
getDocumentAdapterBuilder()
Get the DocumentAdapterBuilder for this Form and create it if null.  | 
 java.lang.String | 
getDocumentURI()
Get the documentURI which is used to create the Document  | 
 java.util.Map | 
getFormContext()
Get the Map of key/value pairs for this Form's
 context. | 
 java.lang.String | 
getSourceId()
Returns the id of the node this component is bound to.  | 
protected  void | 
initForm()
Initialize form for first time use by building/parsing Document.  | 
 boolean | 
isInitialized()
Indicates whether the form has been initialized (via the initForm method).  | 
 java.lang.Object | 
lookup(java.lang.Object key)
Lookup a value from this Form's context. | 
protected  void | 
openForm()
This method is invoked as part of the processOpenFormEvent method.  | 
 void | 
printComponentTree(Container parent,
                   java.lang.String level)
Prints the component tree contents to the console  | 
protected  void | 
processCloseFormEvent(CloseFormEvent e)
Processes a given CloseFormEvent by invoking the Form's closeForm method, then dispatching an CloseFormEvent to the
 Form's children, and finally propagating the
 CloseFormEvent to registered listeners. | 
protected  void | 
processEvent(java.util.EventObject e)
Processes given event by invoking the appropriate processX__Event method.  | 
protected  void | 
processInitContextEvent(InitContextEvent e)
Processes a given InitContextEvent by setting the formContext
 and parameterMap from the given message, then dispatching an
 InitContextEvent to the Form's children, and
 finally propagating the InitContextEvent to registered
 listeners. | 
protected  void | 
processInitFormEvent(InitFormEvent e)
Processes a given InitFormEvent by invoking the Form's initForm method (unless initialized is true), then dispatching an InitFormEvent to the Form's children, and
 finally propagating the InitFormEvent to registered listeners. | 
protected  void | 
processOpenFormEvent(OpenFormEvent e)
Processes a given OpenFormEvent by invoking the Form's openForm method, then dispatching an OpenFormEvent to the
 Form's children, and finally propagating the
 OpenFormEvent to registered listeners. | 
 void | 
removeCloseFormListener(CloseFormListener l)
Removes given listener from notification list for CloseFormEvents  | 
 void | 
removeInitContextListener(InitContextListener l)
Removes given listener from notification list for InitContextEvents  | 
 void | 
removeInitFormListener(InitFormListener l)
Removes given listener from notification list for InitFormEvents  | 
 void | 
removeOpenFormListener(OpenFormListener l)
Removes given listener from notification list for OpenFormEvents  | 
 void | 
setDocument(org.w3c.dom.Document newDocument)
Sets the document and creates the documentAdapter for this form.  | 
 void | 
setDocumentAdapter(DocumentAdapter newDocumentAdapter)
Sets the documentAdapter for this form.  | 
 void | 
setDocumentAdapterBuilder(DocumentAdapterBuilder builder)
Set the DocumentAdapterBuilder for this Form  | 
 void | 
setDocumentURI(java.lang.String documentURI)
Set the documentURI which is used to create the Document  | 
 void | 
setFormContext(java.util.Map formContext)
Set the Map of key/value pairs for this Form's
 context. | 
 void | 
setInitialized(boolean newInitialized)
Sets an indicator that the form has been initialized (via the initForm method).  | 
 void | 
setSourceId(java.lang.String sourceId)
Sets the id of the node this component is bound to.  | 
 java.lang.String | 
toString()
Returns a string representation of this object.  | 
| Methods inherited from class com.taursys.xml.DispatchingContainer | 
add, createInputDispatcher, createParameterDispatcher, createRecycleDispatcher, createRenderDispatcher, createTriggerDispatcher, dispatchActions, dispatchInput, dispatchParameters, dispatchRecycle, dispatchRender, getParameterMap, processInputEvent, processParameterEvent, processTriggerEvent, setParameterMap | 
| Methods inherited from class com.taursys.xml.Container | 
addDispatcher, contains, get, getComponents, getDispatcher, getDispatchers, getInputDispatcher, getParameterDispatcher, getRecycleDispatcher, getRenderDispatcher, getTriggerDispatcher, remove, removeDispatcher, setComponents | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String PARAMETER_MAP
| Constructor Detail | 
public Form()
| Method Detail | 
protected DocumentElementRenderer createDefaultRenderer()
createDefaultRenderer in class DocumentElement
protected void dispatchInitContext()
                            throws java.lang.Exception
Form's plus the parameterMap.
java.lang.Exception
protected void dispatchInitForm()
                         throws java.lang.Exception
InitFormEvent to registered
 nested Forms. This method should only be invoked after the
 InitContextEvent has been dispatched.
java.lang.Exception
protected void dispatchOpenForm()
                         throws java.lang.Exception
OpenFormEvent to registered
 nested Forms. This method should only be invoked after the
 InitFormEvent and ParameterEvent have been
 dispatched.
java.lang.Exception
protected void dispatchCloseForm()
                          throws java.lang.Exception
CloseFormEvent to registered
 nested Forms. This method should be invoked after all
 processing is complete. Normally, nested Forms should be
 allowed to close before this form closes.
java.lang.Exception
protected void processEvent(java.util.EventObject e)
                     throws java.lang.Exception
processEvent in class Componentjava.lang.Exception
protected void processInitContextEvent(InitContextEvent e)
                                throws java.lang.Exception
formContext
 and parameterMap from the given message, then dispatching an
 InitContextEvent to the Form's children, and
 finally propagating the InitContextEvent to registered
 listeners.
e - the InitContextEvent to process
java.lang.Exceptionpublic void removeInitContextListener(InitContextListener l)
public void addInitContextListener(InitContextListener l)
protected void fireInitContextReceived(InitContextEvent e)
                                throws java.lang.Exception
java.lang.Exception
protected void initForm()
                 throws java.lang.Exception
java.lang.Exception
protected void processInitFormEvent(InitFormEvent e)
                             throws java.lang.Exception
InitFormEvent to the Form's children, and
 finally propagating the InitFormEvent to registered listeners.
e - the InitFormEvent to process
java.lang.Exceptionpublic void removeInitFormListener(InitFormListener l)
public void addInitFormListener(InitFormListener l)
protected void fireInitFormReceived(InitFormEvent e)
                             throws java.lang.Exception
java.lang.Exception
protected void openForm()
                 throws java.lang.Exception
java.lang.Exception
protected void processOpenFormEvent(OpenFormEvent e)
                             throws java.lang.Exception
OpenFormEvent to the
 Form's children, and finally propagating the
 OpenFormEvent to registered listeners.
e - the OpenFormEvent to process
java.lang.Exceptionpublic void removeOpenFormListener(OpenFormListener l)
public void addOpenFormListener(OpenFormListener l)
protected void fireOpenFormReceived(OpenFormEvent e)
                             throws java.lang.Exception
java.lang.Exception
protected void closeForm()
                  throws java.lang.Exception
java.lang.Exception
protected void processCloseFormEvent(CloseFormEvent e)
                              throws java.lang.Exception
CloseFormEvent to the
 Form's children, and finally propagating the
 CloseFormEvent to registered listeners.
e - the CloseFormEvent to process
java.lang.Exceptionpublic void removeCloseFormListener(CloseFormListener l)
public void addCloseFormListener(CloseFormListener l)
protected void fireCloseFormReceived(CloseFormEvent e)
                              throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getDocumentURI()
for URI syntaxpublic void setDocumentURI(java.lang.String documentURI)
documentURI - which is used to create the Documentfor URI syntax
public void setDocument(org.w3c.dom.Document newDocument)
                 throws DocumentAdapterBuilderException
newDocument - for this form.
DocumentAdapterBuilderExceptionpublic org.w3c.dom.Document getDocument()
public void setDocumentAdapter(DocumentAdapter newDocumentAdapter)
newDocumentAdapter - for this form.public DocumentAdapter getDocumentAdapter()
getDocumentAdapter in class Container
public DocumentAdapterBuilder getDocumentAdapterBuilder()
                                                 throws DocumentAdapterBuilderException
DocumentAdapterBuilderExceptionpublic void setDocumentAdapterBuilder(DocumentAdapterBuilder builder)
builder - the DocumentAdapterBuilder for this Formpublic java.util.Map getFormContext()
Map of key/value pairs for this Form's
 context.
Map of key/value pairs for this Form's
 context.public void setFormContext(java.util.Map formContext)
Map of key/value pairs for this Form's
 context.
formContext - the Map of key/value pairs for this
 Form's context.
java.lang.IllegalArgumentException - if the given value is nullpublic java.lang.Object lookup(java.lang.Object key)
Form's context.
key - the key for the value to lookup
public java.lang.String getSourceId()
public void setSourceId(java.lang.String sourceId)
public void setInitialized(boolean newInitialized)
public boolean isInitialized()
public java.lang.String toString()
toString in class DocumentElement
public void printComponentTree(Container parent,
                               java.lang.String level)
parent - starting parent containerlevel - spaces to indent initially
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||