DocumentElement, FormScriptable, NamedDelegate, ScriptingEventHandler, ScriptingHandlerpublic class WebForm.Scriptable extends ScriptableDelegate implements NamedDelegate, FormScriptable
NULL_SCRIPT_ENGINE| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
get(java.lang.String propertyName) |
get the Object for the given propertyName
|
protected HTMLElement |
get_element() |
|
java.lang.String |
getAction() |
|
java.lang.String |
getAttribute(java.lang.String attributeName) |
get the content of the given attribute
|
ScriptableDelegate[] |
getElementDelegates() |
|
ScriptableDelegate[] |
getElementsByTagName(java.lang.String name) |
|
java.lang.String |
getName() |
|
boolean |
handleEvent(java.lang.String eventName) |
Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined.
|
void |
removeAttribute(java.lang.String attributeName) |
remove the given attribute
|
void |
reset() |
|
void |
set(java.lang.String propertyName,
java.lang.Object value) |
Sets the value of the named property.
|
void |
setAction(java.lang.String newAction) |
set the action
|
void |
setAttribute(java.lang.String attributeName,
java.lang.Object value) |
set the attribute with the given attribute name to the given value
|
void |
setParameterValue(java.lang.String name,
java.lang.String value) |
set the value of a parameter
|
void |
submit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScriptLanguagedoEvent, doEventScript, handleEventpublic java.lang.String getAction()
public void setAction(java.lang.String newAction)
FormScriptablesetAction in interface FormScriptablepublic void submit()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionpublic void reset()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionpublic java.lang.String getName()
getName in interface NamedDelegatepublic java.lang.Object get(java.lang.String propertyName)
propertyName - - the name of the property to getpublic void set(java.lang.String propertyName,
java.lang.Object value)
set in class ScriptableDelegatepropertyName - - the name of the propertyvalue - - the new valuepublic void setParameterValue(java.lang.String name,
java.lang.String value)
FormScriptablesetParameterValue in interface FormScriptablename - - the name of the parameter to setvalue - - the value to use for the parameterpublic ScriptableDelegate[] getElementDelegates()
public ScriptableDelegate[] getElementsByTagName(java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected HTMLElement get_element()
public java.lang.String getAttribute(java.lang.String attributeName)
attributeName - public void setAttribute(java.lang.String attributeName,
java.lang.Object value)
attributeName - value - public void removeAttribute(java.lang.String attributeName)
attributeName - public boolean handleEvent(java.lang.String eventName)
ScriptableDelegatehandleEvent in interface ScriptingEventHandlerhandleEvent in class ScriptableDelegateeventName - the name of the event for which a handler should be run.