Login | Register
My pages Projects Community openCollabNet
CyberWebForm 2.0

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

Method Summary
 void checkSelectInitialize(WebFormTransaction tr)
           
 void clearValidationMessage()
           
 XPeer createXPeer(WebFormTransaction tr)
           
 XPeer createXPeer(WebFormTransaction tr, Object extraInfo)
           
 void decompose(DecomposeQueue qu)
          Object decomposition support.
 XForm doFormSelected(WebFormTransaction tr)
          Internal method called by XFormTag.
 Object getAttribute(String name)
           
 Iterator getAttributeNames()
           
 Element getElement()
          Retrieves the corresponding Element.
 String getId()
          Retrieves the unique-identifier of this XForm.
 XFormManager getManager()
          Retrieves the XForm manager object associated with the XForm
 XFormHandler getMulticastXFormHandler()
          Retrieves the multicast event handler of this XForm.
 XForm getParent()
           
 XPluginConfig getPluginConfig()
           
 String getValidationMessage()
          Retrieves validation message, if one, associated by this XForm.
 void removeAllAttributes()
           
 Object removeAttribute(String name)
          Retrieves a runtime attribute associated with this XForm
 void setAttribute(String name, Object value)
          Sets a runtime attribute associated with this XForm.
 void setSelectInitialized(boolean value)
           
 void setValidationMessage(String message)
          Sets the validation message associated by this XForm.
 XPluginConfig tryGetPluginConfig()
           
 
Methods inherited from class cyber.web.form.AbstractDecomposable
isDecomposed, markDecomposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 name
value - 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

CyberWebForm 2.0

Copyright 2000-2002 Apache Software Foundation.