cyber.web.form
Class XForm
java.lang.Object
|
+--cyber.web.form.AbstractDecomposable
|
+--cyber.web.form.XForm
- All Implemented Interfaces:
- Decomposable
- public class XForm
- extends AbstractDecomposable
A counterpart of Element in this architecture.
Each XForm is associated with exactly one Element object. Likewise,
each Element in a WebForm session is also associated with exactly
one XForm object. There is a one-to-one relationship between the two kinds
of objects. Doing so allows storing extra meta-information into an XML
node such as programmatic linkage and runtime attributes.
- Author:
- cying
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getElement
public Element getElement()
- Retrieves the corresponding Element.
If you need to retrieve the correspoding XForm, use
XFormManager.getXForm(org.jdom.Element)
getId
public String getId()
- Retrieves the unique-identifier of this XForm.
getManager
public XFormManager getManager()
- Retrieves the XForm manager object associated with the XForm
getMulticastXFormHandler
public XFormHandler getMulticastXFormHandler()
- Retrieves the multicast event handler of this XForm.
- See Also:
MulticastXFormHandlerImpl
getValidationMessage
public String getValidationMessage()
- Retrieves validation message, if one, associated by this XForm.
setValidationMessage
public void setValidationMessage(String message)
- Sets the validation message associated by this XForm.
createXPeer
public XPeer createXPeer(WebFormTransaction tr,
Object extraInfo)
createXPeer
public XPeer createXPeer(WebFormTransaction tr)
clearValidationMessage
public void clearValidationMessage()
tryGetPluginConfig
public XPluginConfig tryGetPluginConfig()
getPluginConfig
public XPluginConfig getPluginConfig()
getParent
public XForm getParent()
checkSelectInitialize
public void checkSelectInitialize(WebFormTransaction tr)
setSelectInitialized
public void setSelectInitialized(boolean value)
getAttribute
public Object getAttribute(String name)
- Parameters:
name - - Returns:
-
getAttributeNames
public Iterator getAttributeNames()
- Returns:
-
removeAllAttributes
public void removeAllAttributes()
removeAttribute
public Object removeAttribute(String name)
- Retrieves a runtime attribute associated with this XForm
- Parameters:
name - The attribute name- Returns:
- The attribute value
setAttribute
public void setAttribute(String name,
Object value)
- Sets a runtime attribute associated with this XForm.
- Parameters:
name - The attribute namevalue - The attribute value
doFormSelected
public XForm doFormSelected(WebFormTransaction tr)
- Internal method called by XFormTag.
decompose
public void decompose(DecomposeQueue qu)
- Object decomposition support.
- Overrides:
decompose in class AbstractDecomposable
- See Also:
Decomposable
Copyright 2000-2002 Apache Software Foundation.