public class FormControl.Scriptable extends ScriptableDelegate implements Input
NULL_SCRIPT_ENGINE| Constructor and Description |
|---|
FormControl.Scriptable()
construct a Scriptable
|
| Modifier and Type | Method and Description |
|---|---|
void |
blur()
simulate blur
|
void |
click()
allow calling click for this control
|
void |
focus()
simulate focus;
|
protected HTMLElement |
get_element() |
Object |
get(String propertyName)
get the given property
|
String |
getAttribute(String attributeName)
get the content of the given attribute
|
String |
getID()
get my ID
|
String |
getName()
get my Name
|
boolean |
handleEvent(String eventName)
Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined.
|
void |
removeAttribute(String attributeName)
remove the given attribute
|
void |
sendOnChangeEvent()
allow firing a sendOnChangeEvent
|
void |
set(String propertyName,
Object value)
set the given property to the given value
|
void |
setAttribute(String attributeName,
Object value)
set the given attribute to the given value
|
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScriptLanguageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveAttributepublic String getName()
getName in interface NamedDelegatepublic String getID()
getID in interface IdentifiedDelegatepublic void set(String propertyName, Object value)
set in interface Inputset in class ScriptableDelegatepropertyName - - the property to setvalue - - the value to usepublic void setAttribute(String attributeName, Object value)
setAttribute in interface InputattributeName - - the name of the attribute to setvalue - - the value to usepublic void click()
throws IOException,
SAXException
click in interface InputIOExceptionSAXExceptionpublic void blur()
public void focus()
public void sendOnChangeEvent()
sendOnChangeEvent in interface Inputprotected HTMLElement get_element()
public String getAttribute(String attributeName)
attributeName - public void removeAttribute(String attributeName)
attributeName - public boolean handleEvent(String eventName)
ScriptableDelegatehandleEvent in interface ScriptingEventHandlerhandleEvent in class ScriptableDelegateeventName - the name of the event for which a handler should be run.Copyright © 2012. All Rights Reserved.