|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaxcent.JaxcentObject
jaxcent.JaxcentHtmlElement
jaxcent.HtmlElement
The class HtmlElement is a generic catch-all class that can be used for any tags on the page. It provides all methods, properties and events supported by Jaxcent. However, if the methods or properties are not supported by the actual HTML element on the page, a run time error may occur. If the event is not supported by the HTML element, no callback will come back, and a run time error may also occur.
Constructor Summary | |
HtmlElement(JaxcentPage page,
SearchType searchType,
java.lang.String str)
Search for HTML element on page by specified search type and search string. |
|
HtmlElement(JaxcentPage page,
SearchType searchType,
java.lang.String str,
int index)
Search for HTML Element on page by specified search type and search string, and search index. |
|
HtmlElement(JaxcentPage page,
SearchType searchType,
java.lang.String tag,
java.lang.String text)
Create new HTML Element on page using the specified tag. |
|
HtmlElement(JaxcentPage page,
SearchType searchType,
java.lang.String tag,
java.lang.String[] attributes,
java.lang.String[] values)
Create new HTML element on page using the specified attributes and values. |
|
HtmlElement(JaxcentPage page,
SearchType searchType,
java.lang.String tag,
java.lang.String text,
java.lang.String[] attributes,
java.lang.String[] values)
Create new HTML element on page using the specified text and attributes and values. |
|
HtmlElement(JaxcentPage page,
java.lang.String id)
Search for HTML element on page by specified ID |
Method Summary | |
void |
blur()
Lose the input focus. |
void |
click()
Simulate a mouse click on the HTML element. |
void |
delete()
Delete this element. |
void |
focus()
Get the input focus. |
java.lang.String |
getAbbr()
Retrieve the "abbr" property |
java.lang.String |
getAction()
Retrieve the "action" property |
java.lang.String |
getAlign()
Retrieve the "align" property |
java.lang.String |
getAxis()
Retrieve the "axis" property |
int |
getBorder()
Retrieve the "border" property |
java.lang.String |
getCaption()
Retrieve the "caption" property |
int |
getCellIndex()
Retrieve the "cellIndex" property |
int |
getCellPadding()
Retrieve the "cellPadding" property |
int |
getCellSpacing()
Retrieve the "cellSpacing" property |
boolean |
getChecked()
Retrieve the "checked" property |
int |
getColSpan()
Retrieve the "colSpan" property |
boolean |
getComplete()
Checks if loading is complete |
java.lang.String |
getCoords()
Retrieve the "coords" property |
boolean |
getDefaultchecked()
Returns whether this checkbox/radiobutton is checked on by default |
boolean |
getDefaultSelected()
Retrieve the "defaultSelected" property |
java.lang.String |
getDefaultValue()
Retrieve the "defaultValue" property |
boolean |
getDisabled()
Retrieve the "disabled" property |
java.lang.String |
getFrame()
Retrieve the "frame" property |
int |
getHeight()
Retrieve the "height" property |
java.lang.String |
getHref()
Retrieve the "href" property |
int |
getHspace()
Retrieve the "hspace" property |
int |
getIndex()
Retrieve the "index" property |
java.lang.String |
getInnerHTML()
Retrieve the "innerHTML" property |
boolean |
getIsMap()
Retrieve the "isMap" property |
int |
getLength()
Retrieve the "length" property |
java.lang.String |
getLowsrc()
Retrieve the "lowsrc" property |
java.lang.String |
getMaxLength()
Returns the maximum number of characters allowed in field |
java.lang.String |
getMethod()
Retrieve the "method" property |
boolean |
getMultiple()
Whether multiple items can be selected |
java.lang.String |
getName()
Retrieve the "name" property |
boolean |
getReadOnly()
Retrieve the "readOnly" property |
int |
getRowIndex()
Retrieve the "rowIndex" property |
int |
getRows()
Retrieve the "rows" property |
int |
getRowSpan()
Retrieve the "rowSpan" property |
java.lang.String |
getRules()
Retrieve the "rules" property |
boolean |
getSelected()
Retrieve the "selected" property |
int |
getSelectedIndex()
Retrieve the "selectedIndex" property |
java.lang.String |
getShape()
Retrieve the "shape" property |
int |
getSize()
Retrieve the "size" property |
java.lang.String |
getSrc()
Retrieve the "src" property |
java.lang.String |
getTarget()
Retrieve the "target" property |
java.lang.String |
getText()
Retrieve the "text" property |
java.lang.String |
getUseMap()
Retrieve the "useMap" property |
java.lang.String |
getVAlign()
Retrieve the "vAlign" property |
java.lang.String |
getValue()
Retrieve the "value" property |
int |
getVspace()
Retrieve the "vspace" property |
int |
getWidth()
Retrieve the "width" property |
protected void |
onAbort()
Override to handle the "abort" event |
protected void |
onBlur()
Override to handle the "blur" event |
protected void |
onChange()
Override to handle the "change" event |
protected void |
onChange(int selectedIndex)
Override to handle the "change" event and receive current selected index |
protected void |
onChange(java.lang.String value)
Override to handle the "change" event and receive current element value |
protected void |
onClick()
Override to handle the "click" event |
protected void |
onClick(java.util.Map pageData)
Override to handle the "click" event and receive current page data |
protected void |
onComplete()
Override to handle the "complete" event |
protected void |
onError()
Override to handle the "error" event |
protected void |
onFocus()
Override to handle the "focus" event |
protected void |
onKeyDown()
Override to handle the "keyDown" event |
protected void |
onKeyDown(java.lang.String value)
Override to handle the "keyDown" event and receive current element value |
protected void |
onKeypress()
Override to handle the "keypress" event |
protected void |
onKeypress(java.lang.String value)
Override to handle the "keypress" event and receive current element value |
protected void |
onKeyUp()
Override to handle the "keyUp" event |
protected void |
onKeyUp(java.lang.String value)
Override to handle the "keyUp" event and receive current element value |
protected void |
onLoad()
Override to handle the "load" event |
protected void |
onMouseDown()
Override to handle the "mouseDown" event |
protected void |
onMouseDown(java.lang.String value)
Override to handle the "mouseDown" event and receive current element value |
protected void |
onMouseUp()
Override to handle the "mouseUp" event |
protected void |
onMouseUp(java.lang.String value)
Override to handle the "mouseUp" event and receive current element value |
protected void |
onReset()
Override to handle the "reset" event |
protected void |
onSelect()
Override to handle the "select" event |
protected void |
onSubmit()
Override to handle the "submit" event |
protected void |
onSubmit(java.util.Map pageData)
Override to handle the "submit" event and receive current page data |
void |
reset()
Reset the form. |
void |
scrollIntoView(boolean top)
Bring the element into view, by scrolling if necessary. |
void |
select()
Select the text in the field. |
void |
setAbbr(java.lang.String value)
Set the "abbr" property |
void |
setAction(java.lang.String value)
Set the "action" property |
void |
setAlign(java.lang.String value)
Set the "align" property |
void |
setAxis(java.lang.String value)
Set the "axis" property |
void |
setBorder(int value)
Set the "border" property |
void |
setCaption(java.lang.String value)
Set the "caption" property |
void |
setCellIndex(int value)
Set the "cellIndex" property |
void |
setCellPadding(int value)
Set the "cellPadding" property |
void |
setCellSpacing(int value)
Set the "cellSpacing" property |
void |
setChecked(boolean value)
Set the "checked" property |
void |
setColSpan(int value)
Set the "colSpan" property |
void |
setComplete(boolean value)
|
void |
setCoords(java.lang.String value)
Set the "coords" property |
void |
setDefaultchecked(boolean value)
|
void |
setDefaultSelected(boolean value)
Set the "defaultSelected" property |
void |
setDefaultValue(java.lang.String value)
Set the "defaultValue" property |
void |
setDisabled(boolean value)
Set the "disabled" property |
void |
setFrame(java.lang.String value)
Set the "frame" property |
void |
setHeight(int value)
Set the "height" property |
void |
setHref(java.lang.String value)
Set the "href" property |
void |
setHspace(int value)
Set the "hspace" property |
void |
setIndex(int value)
Set the "index" property |
void |
setInnerHTML(java.lang.String value)
Set the "innerHTML" property |
void |
setIsMap(boolean value)
Set the "isMap" property |
void |
setLength(int value)
Set the "length" property |
void |
setLowsrc(java.lang.String value)
Set the "lowsrc" property |
void |
setMaxLength(java.lang.String value)
Sets the maximum number of characters allowed in field |
void |
setMethod(java.lang.String value)
Set the "method" property |
void |
setMultiple(boolean value)
Sets whether multiple items can be selected |
void |
setName(java.lang.String value)
Set the "name" property |
void |
setReadOnly(boolean value)
Set the "readOnly" property |
void |
setRowIndex(int value)
Set the "rowIndex" property |
void |
setRows(int value)
Set the "rows" property |
void |
setRowSpan(int value)
Set the "rowSpan" property |
void |
setRules(java.lang.String value)
Set the "rules" property |
void |
setSelected(boolean value)
Set the "selected" property |
void |
setSelectedIndex(int value)
Set the "selectedIndex" property |
void |
setShape(java.lang.String value)
Set the "shape" property |
void |
setSize(int value)
Set the "size" property |
void |
setSrc(java.lang.String value)
Set the "src" property |
void |
setTarget(java.lang.String value)
Set the "target" property |
void |
setText(java.lang.String value)
Set the "text" property |
void |
setUseMap(java.lang.String value)
Set the "useMap" property |
void |
setVAlign(java.lang.String value)
Set the "vAlign" property |
void |
setValue(java.lang.String value)
Set the "value" property |
void |
setVspace(int value)
Set the "vspace" property |
void |
setWidth(int value)
Set the "width" property |
void |
submit()
Submit the form. |
Methods inherited from class jaxcent.JaxcentHtmlElement |
getAttribute, getID, getInnerText, getStyle, getTag, hide, insertAfter, insertAtBeginning, insertAtBeginning, insertAtEnd, insertAtEnd, insertBefore, setAttribute, setInnerText, setStyle, setStyle, setStyle, setStyle, setVisible, show |
Methods inherited from class jaxcent.JaxcentObject |
addJavaScriptVerification, getId, getProperty, setId, setProperty, setProperty, setProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HtmlElement(JaxcentPage page, java.lang.String id)
public HtmlElement(JaxcentPage page, SearchType searchType, java.lang.String str)
public HtmlElement(JaxcentPage page, SearchType searchType, java.lang.String str, int index)
public HtmlElement(JaxcentPage page, SearchType searchType, java.lang.String tag, java.lang.String text) throws Jaxception
public HtmlElement(JaxcentPage page, SearchType searchType, java.lang.String tag, java.lang.String[] attributes, java.lang.String[] values) throws Jaxception
public HtmlElement(JaxcentPage page, SearchType searchType, java.lang.String tag, java.lang.String text, java.lang.String[] attributes, java.lang.String[] values) throws Jaxception
Method Detail |
protected void onReset()
protected void onMouseDown()
protected void onMouseDown(java.lang.String value)
protected void onAbort()
protected void onKeyDown()
protected void onKeyDown(java.lang.String value)
protected void onMouseUp()
protected void onMouseUp(java.lang.String value)
protected void onError()
protected void onSelect()
protected void onKeypress()
protected void onKeypress(java.lang.String value)
protected void onKeyUp()
protected void onKeyUp(java.lang.String value)
protected void onBlur()
protected void onFocus()
protected void onSubmit()
protected void onSubmit(java.util.Map pageData)
protected void onChange()
protected void onChange(java.lang.String value)
protected void onChange(int selectedIndex)
protected void onComplete()
protected void onLoad()
protected void onClick()
protected void onClick(java.util.Map pageData)
public void setSelectedIndex(int value) throws Jaxception
Jaxception
public int getSelectedIndex() throws Jaxception
Jaxception
public void setVspace(int value) throws Jaxception
Jaxception
public int getVspace() throws Jaxception
Jaxception
public void setValue(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getValue() throws Jaxception
Jaxception
public void setIsMap(boolean value) throws Jaxception
Jaxception
public boolean getIsMap() throws Jaxception
Jaxception
public void setLength(int value) throws Jaxception
Jaxception
public int getLength() throws Jaxception
Jaxception
public void setRows(int value) throws Jaxception
Jaxception
public int getRows() throws Jaxception
Jaxception
public void setRowSpan(int value) throws Jaxception
Jaxception
public int getRowSpan() throws Jaxception
Jaxception
public void setFrame(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getFrame() throws Jaxception
Jaxception
public void setSelected(boolean value) throws Jaxception
Jaxception
public boolean getSelected() throws Jaxception
Jaxception
public void setBorder(int value) throws Jaxception
Jaxception
public int getBorder() throws Jaxception
Jaxception
public void setHeight(int value) throws Jaxception
Jaxception
public int getHeight() throws Jaxception
Jaxception
public void setDefaultchecked(boolean value) throws Jaxception
Jaxception
public boolean getDefaultchecked() throws Jaxception
Jaxception
public void setCoords(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getCoords() throws Jaxception
Jaxception
public void focus() throws Jaxception
Jaxception
public void setCaption(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getCaption() throws Jaxception
Jaxception
public void setComplete(boolean value) throws Jaxception
Jaxception
public boolean getComplete() throws Jaxception
Jaxception
public void setDefaultValue(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getDefaultValue() throws Jaxception
Jaxception
public void setCellPadding(int value) throws Jaxception
Jaxception
public int getCellPadding() throws Jaxception
Jaxception
public void setName(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getName() throws Jaxception
Jaxception
public void delete() throws Jaxception
Jaxception
public void setRowIndex(int value) throws Jaxception
Jaxception
public int getRowIndex() throws Jaxception
Jaxception
public void select() throws Jaxception
Jaxception
public void setInnerHTML(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getInnerHTML() throws Jaxception
Jaxception
public void setCellIndex(int value) throws Jaxception
Jaxception
public int getCellIndex() throws Jaxception
Jaxception
public void setMethod(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getMethod() throws Jaxception
Jaxception
public void setText(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getText() throws Jaxception
Jaxception
public void setChecked(boolean value) throws Jaxception
Jaxception
public boolean getChecked() throws Jaxception
Jaxception
public void click() throws Jaxception
Jaxception
public void blur() throws Jaxception
Jaxception
public void setSrc(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getSrc() throws Jaxception
Jaxception
public void setAlign(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getAlign() throws Jaxception
Jaxception
public void setDefaultSelected(boolean value) throws Jaxception
Jaxception
public boolean getDefaultSelected() throws Jaxception
Jaxception
public void setWidth(int value) throws Jaxception
Jaxception
public int getWidth() throws Jaxception
Jaxception
public void setDisabled(boolean value) throws Jaxception
Jaxception
public boolean getDisabled() throws Jaxception
Jaxception
public void setReadOnly(boolean value) throws Jaxception
Jaxception
public boolean getReadOnly() throws Jaxception
Jaxception
public void setVAlign(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getVAlign() throws Jaxception
Jaxception
public void setLowsrc(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getLowsrc() throws Jaxception
Jaxception
public void setAbbr(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getAbbr() throws Jaxception
Jaxception
public void setCellSpacing(int value) throws Jaxception
Jaxception
public int getCellSpacing() throws Jaxception
Jaxception
public void setUseMap(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getUseMap() throws Jaxception
Jaxception
public void setIndex(int value) throws Jaxception
Jaxception
public int getIndex() throws Jaxception
Jaxception
public void setTarget(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getTarget() throws Jaxception
Jaxception
public void setMultiple(boolean value) throws Jaxception
Jaxception
public boolean getMultiple() throws Jaxception
Jaxception
public void setHspace(int value) throws Jaxception
Jaxception
public int getHspace() throws Jaxception
Jaxception
public void reset() throws Jaxception
Jaxception
public void setRules(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getRules() throws Jaxception
Jaxception
public void setAction(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getAction() throws Jaxception
Jaxception
public void setAxis(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getAxis() throws Jaxception
Jaxception
public void setColSpan(int value) throws Jaxception
Jaxception
public int getColSpan() throws Jaxception
Jaxception
public void submit() throws Jaxception
Jaxception
public void setMaxLength(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getMaxLength() throws Jaxception
Jaxception
public void setSize(int value) throws Jaxception
Jaxception
public int getSize() throws Jaxception
Jaxception
public void scrollIntoView(boolean top) throws Jaxception
Jaxception
public void setHref(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getHref() throws Jaxception
Jaxception
public void setShape(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getShape() throws Jaxception
Jaxception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |