|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaxcent.JaxcentObject
jaxcent.JaxcentHtmlElement
jaxcent.HtmlSelect
The class HtmlSelect corresponds to SELECT tags on the page.
Constructor Summary | |
HtmlSelect(JaxcentPage page,
SearchType searchType,
java.lang.String str)
Search for HTML element on page by specified search type and search string. |
|
HtmlSelect(JaxcentPage page,
SearchType searchType,
java.lang.String[] attributes,
java.lang.String[] values)
Create new HTML element on page using the specified attributes and values. |
|
HtmlSelect(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. |
|
HtmlSelect(JaxcentPage page,
SearchType searchType,
java.lang.String tag,
java.lang.String text)
Create new HTML Element on page using the specified tag. |
|
HtmlSelect(JaxcentPage page,
SearchType searchType,
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. |
|
HtmlSelect(JaxcentPage page,
java.lang.String id)
Search for HTML element on page by specified ID |
Method Summary | |
void |
blur()
Lose the input focus. |
void |
deleteAllOptions()
Remove all OPTIONs. |
void |
deleteFromBottom(int n)
Remove N options from bottom. |
void |
deleteFromTop(int n)
Remove N options from top. |
void |
deleteOption(int index)
Delete the OPTION at the specified index. |
void |
focus()
Get the input focus. |
boolean |
getDisabled()
Retrieve the "disabled" property |
int |
getLength()
Retrieve the "length" property |
boolean |
getMultiple()
Whether multiple items can be selected |
java.lang.String |
getName()
Retrieve the "name" property |
int |
getNumOptions()
Returns the number of OPTIONS in the select. |
HtmlOption |
getOption(int index)
Return the OPTION at the specified index. |
int |
getSelectedIndex()
Retrieve the "selectedIndex" property |
int |
getSize()
Retrieve the "size" property |
int |
getWidth()
Retrieve the "width" property |
HtmlOption |
insertOption(int index,
java.lang.String optionText)
Insert an OPTION in the SELECT at the specified index. |
HtmlOption |
insertOption(int index,
java.lang.String optionText,
java.lang.String[] attributes,
java.lang.String[] values)
Insert an OPTION in the SELECT at the specified index. |
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 |
onFocus()
Override to handle the "focus" event |
void |
setDisabled(boolean value)
Set the "disabled" property |
void |
setMultiple(boolean value)
Sets whether multiple items can be selected |
void |
setName(java.lang.String value)
Set the "name" property |
void |
setSelectedIndex(int value)
Set the "selectedIndex" property |
void |
setSize(int value)
Set the "size" property |
void |
setWidth(int value)
Set the "width" property |
void |
sizeToOptions()
Set SIZE of SELECT same as the number of options. |
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 HtmlSelect(JaxcentPage page, java.lang.String id)
public HtmlSelect(JaxcentPage page, SearchType searchType, java.lang.String str)
public HtmlSelect(JaxcentPage page, SearchType searchType, java.lang.String str, int index)
public HtmlSelect(JaxcentPage page, SearchType searchType, java.lang.String tag, java.lang.String text) throws Jaxception
public HtmlSelect(JaxcentPage page, SearchType searchType, java.lang.String[] attributes, java.lang.String[] values) throws Jaxception
public HtmlSelect(JaxcentPage page, SearchType searchType, java.lang.String text, java.lang.String[] attributes, java.lang.String[] values) throws Jaxception
Method Detail |
protected void onClick()
protected void onFocus()
protected void onBlur()
protected void onChange()
protected void onChange(java.lang.String value)
protected void onChange(int selectedIndex)
public int getNumOptions() throws Jaxception
Jaxception
public HtmlOption getOption(int index) throws Jaxception
Jaxception
public void deleteOption(int index) throws Jaxception
Jaxception
public HtmlOption insertOption(int index, java.lang.String optionText) throws Jaxception
Jaxception
public HtmlOption insertOption(int index, java.lang.String optionText, java.lang.String[] attributes, java.lang.String[] values) throws Jaxception
Jaxception
public void deleteAllOptions() throws Jaxception
Jaxception
public void deleteFromTop(int n) throws Jaxception
Jaxception
public void deleteFromBottom(int n) throws Jaxception
Jaxception
public void sizeToOptions() throws Jaxception
Jaxception
public void setDisabled(boolean value) throws Jaxception
Jaxception
public boolean getDisabled() throws Jaxception
Jaxception
public int getLength() throws Jaxception
Jaxception
public void setMultiple(boolean value) throws Jaxception
Jaxception
public boolean getMultiple() throws Jaxception
Jaxception
public void setName(java.lang.String value) throws Jaxception
Jaxception
public java.lang.String getName() throws Jaxception
Jaxception
public void setSelectedIndex(int value) throws Jaxception
Jaxception
public int getSelectedIndex() throws Jaxception
Jaxception
public void setSize(int value) throws Jaxception
Jaxception
public int getSize() throws Jaxception
Jaxception
public void setWidth(int value) throws Jaxception
Jaxception
public int getWidth() throws Jaxception
Jaxception
public void blur() throws Jaxception
Jaxception
public void focus() throws Jaxception
Jaxception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |