|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.DynamicObject
ice.pilots.html4.DNode
ice.pilots.html4.DElement
ice.pilots.html4.FormTypeElement
ice.pilots.html4.DInputElement
| Field Summary | |
static int |
DEFAULT_MAX_LENGTH
|
static int |
DEFAULT_SIZE
|
protected DFormElement |
hackForm
|
| Fields inherited from class ice.pilots.html4.DNode |
doc, first, last, next, parent, prev |
| Fields inherited from class ice.storm.DynamicObject |
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
protected |
DInputElement(DDocument doc,
int id)
|
| Method Summary | |
void |
blur()
Removes keyboard focus from this element. |
void |
click()
Simulate a mouse-click. |
void |
dispatchChange()
|
boolean |
dispatchEvent(Event event)
This method allows the dispatch of events into the implementations event model. |
void |
dispatchSelection(int start,
int end)
|
Object |
execDynamicMethod(String name,
Object[] args,
DynEnv env)
Perform function-like actions for `name' with the given args. |
protected String |
fixValue(String value)
|
void |
focus()
Gives keyboard focus to this element. |
String |
getAccept()
A comma-separated list of content types that a server processing this form will handle correctly. |
String |
getAccessKey()
A single character access key to give access to the form control. |
String |
getAlign()
Aligns this object (vertically or horizontally) with respect to its surrounding text. |
String |
getAlt()
Alternate text for user agents not rendering the normal content of this element. |
boolean |
getChecked()
When the type attribute of the element has the value
"Radio" or "Checkbox", this represents the current state of the form
control, in an interactive user agent. |
boolean |
getDefaultChecked()
When type has the value "Radio" or "Checkbox", this
represents the HTML checked attribute of the element. |
String |
getDefaultValue()
When the type attribute of the element has the value
"Text", "File" or "Password", this represents the HTML value
attribute of the element. |
DFormElement |
getDForm()
|
boolean |
getDisabled()
The control is unavailable in this context. |
Object |
getDynamicValue(String name,
DynEnv env)
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. |
HTMLFormElement |
getForm()
Returns the FORM element containing this control. |
int |
getMaxLength()
Maximum number of characters for text fields, when type
has the value "Text" or "Password". |
boolean |
getReadOnly()
This control is read-only. |
String |
getSize()
Size information. |
String |
getSrc()
When the type attribute has the value "Image", this
attribute specifies the location of the image to be used to decorate
the graphical submit button. |
int |
getTabIndex()
Index that represents the element's position in the tabbing order. |
String |
getType()
The type of control created. |
String |
getUseMap()
Use client-side image map. |
String |
getValue()
When the type attribute of the element has the value
"Text", "File" or "Password", this represents the current contents of
the corresponding form control, in an interactive user agent. |
protected void |
onDAttrValueChange(DAttr attr)
|
void |
select()
Select the contents of the text area. |
void |
setAccept(String accept)
|
void |
setAccessKey(String accessKey)
|
void |
setAlign(String align)
|
void |
setAlt(String alt)
|
protected void |
setAttribute(int attrNameId,
String value)
|
void |
setAttribute(String name,
String value)
Adds a new attribute. |
void |
setChecked(boolean checked)
|
void |
setDefaultChecked(boolean defaultChecked)
|
void |
setDefaultValue(String defaultValue)
|
void |
setDisabled(boolean disabled)
|
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
void |
setMaxLength(int maxLength)
|
void |
setReadOnly(boolean readOnly)
|
void |
setSize(String size)
|
void |
setSrc(String src)
|
void |
setTabIndex(int tabIndex)
|
void |
setType(String type)
TODO |
void |
setUseMap(String useMap)
|
void |
setValue(String value)
|
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, getSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.html.HTMLInputElement |
getForm, getName, setName |
| Methods inherited from interface org.w3c.dom.html.HTMLElement |
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttributeNode, setAttributeNodeNS, setAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Field Detail |
public static final int DEFAULT_MAX_LENGTH
public static final int DEFAULT_SIZE
protected DFormElement hackForm
| Constructor Detail |
protected DInputElement(DDocument doc,
int id)
| Method Detail |
public void setAttribute(String name,
String value)
ElementAttr node plus any
Text and EntityReference nodes, build the
appropriate subtree, and use setAttributeNode to assign
it as the value of an attribute.
setAttributeNS method.
setAttribute in interface ElementsetAttribute in class DElement
protected void setAttribute(int attrNameId,
String value)
setAttribute in class DElementprotected void onDAttrValueChange(DAttr attr)
onDAttrValueChange in class DElementpublic void dispatchChange()
public boolean dispatchEvent(Event event)
EventTarget EventTarget on which dispatchEvent is
called.
dispatchEvent in interface EventTargetdispatchEvent in class DNodepublic String getDefaultValue()
HTMLInputElementtype attribute of the element has the value
"Text", "File" or "Password", this represents the HTML value
attribute of the element. The value of this attribute does not change
if the contents of the corresponding form control, in an interactive
user agent, changes. Changing this attribute, however, resets the
contents of the form control. See the value attribute definition in
HTML 4.0.
getDefaultValue in interface HTMLInputElementpublic void setDefaultValue(String defaultValue)
setDefaultValue in interface HTMLInputElementpublic boolean getDefaultChecked()
HTMLInputElementtype has the value "Radio" or "Checkbox", this
represents the HTML checked attribute of the element. The value of
this attribute does not change if the state of the corresponding form
control, in an interactive user agent, changes. Changes to this
attribute, however, resets the state of the form control. See the
checked attribute definition in HTML 4.0.
getDefaultChecked in interface HTMLInputElementpublic void setDefaultChecked(boolean defaultChecked)
setDefaultChecked in interface HTMLInputElementpublic String getAccept()
HTMLInputElement
getAccept in interface HTMLInputElementpublic void setAccept(String accept)
setAccept in interface HTMLInputElementpublic String getAccessKey()
HTMLInputElement
getAccessKey in interface HTMLInputElementpublic void setAccessKey(String accessKey)
setAccessKey in interface HTMLInputElementpublic String getAlt()
HTMLInputElement
getAlt in interface HTMLInputElementpublic void setAlt(String alt)
setAlt in interface HTMLInputElementpublic boolean getChecked()
HTMLInputElementtype attribute of the element has the value
"Radio" or "Checkbox", this represents the current state of the form
control, in an interactive user agent. Changes to this attribute
change the state of the form control, but do not change the value of
the HTML value attribute of the element.
getChecked in interface HTMLInputElementpublic void setChecked(boolean checked)
setChecked in interface HTMLInputElementpublic boolean getDisabled()
HTMLInputElement
getDisabled in interface HTMLInputElementpublic void setDisabled(boolean disabled)
setDisabled in interface HTMLInputElementpublic int getMaxLength()
HTMLInputElementtype
has the value "Text" or "Password". See the maxlength attribute
definition in HTML 4.0.
getMaxLength in interface HTMLInputElementpublic void setMaxLength(int maxLength)
setMaxLength in interface HTMLInputElementpublic boolean getReadOnly()
HTMLInputElementtype has the
value "Text" or "Password". See the readonly attribute definition in
HTML 4.0.
getReadOnly in interface HTMLInputElementpublic void setReadOnly(boolean readOnly)
setReadOnly in interface HTMLInputElementpublic String getSize()
HTMLInputElement
getSize in interface HTMLInputElementpublic void setSize(String size)
setSize in interface HTMLInputElementpublic String getSrc()
HTMLInputElementtype attribute has the value "Image", this
attribute specifies the location of the image to be used to decorate
the graphical submit button. See the src attribute definition in HTML
4.0.
getSrc in interface HTMLInputElementpublic void setSrc(String src)
setSrc in interface HTMLInputElementpublic int getTabIndex()
HTMLInputElement
getTabIndex in interface HTMLInputElementpublic void setTabIndex(int tabIndex)
setTabIndex in interface HTMLInputElementpublic String getType()
HTMLInputElement
getType in interface HTMLInputElementpublic void setType(String type)
setType in interface HTMLInputElementpublic String getUseMap()
HTMLInputElement
getUseMap in interface HTMLInputElementpublic void setUseMap(String useMap)
setUseMap in interface HTMLInputElementpublic String getValue()
HTMLInputElementtype attribute of the element has the value
"Text", "File" or "Password", this represents the current contents of
the corresponding form control, in an interactive user agent.
Changing this attribute changes the contents of the form control, but
does not change the value of the HTML value attribute of the element.
When the type attribute of the element has the value
"Button", "Hidden", "Submit", "Reset", "Image", "Checkbox" or
"Radio", this represents the HTML value attribute of the element. See
the value attribute definition in HTML 4.0.
getValue in interface HTMLInputElementpublic void setValue(String value)
setValue in interface HTMLInputElement
public void dispatchSelection(int start,
int end)
public void blur()
HTMLInputElement
blur in interface HTMLInputElementpublic void focus()
HTMLInputElement
focus in interface HTMLInputElementpublic void select()
HTMLInputElementINPUT elements
whose type attribute has one of the following values:
"Text", "File", or "Password".
select in interface HTMLInputElementpublic void click()
HTMLInputElementINPUT elements whose
type attribute has one of the following values:
"Button", "Checkbox", "Radio", "Reset", or "Submit".
click in interface HTMLInputElementpublic String getAlign()
HTMLInputElement
getAlign in interface HTMLInputElementpublic void setAlign(String align)
setAlign in interface HTMLInputElement
public Object getDynamicValue(String name,
DynEnv env)
DynamicObject
getDynamicValue in class DElement
public int setDynamicValue(String name,
Object value,
DynEnv env)
DynamicObject
setDynamicValue in class DElement
public Object execDynamicMethod(String name,
Object[] args,
DynEnv env)
DynamicObject
execDynamicMethod in class DElementpublic final HTMLFormElement getForm()
public DFormElement getDForm()
protected String fixValue(String value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||