public class Select extends Element
Constructor and Description |
---|
Select() |
Modifier and Type | Method and Description |
---|---|
Select |
assignSelectedIndex(int selectedIndex)
Set current index of selected option without sending script to browser
|
Select |
assignValue(org.json.JSONArray value)
Set value (state) of the element base on value receives from browser.
|
Option |
findOptionByValue(java.lang.String value)
Is looking for select's option with given value comply OptionGroup
elements.
|
int |
getIndexOfOption(Option option)
Is looking for index of given option comply OptionGroup elements.
|
java.lang.String |
getName()
Specifies the name of a drop-down list
|
Option |
getOptionAtIndex(int index)
Is looking for select's option at given index comply OptionGroup
elements.
|
java.lang.Integer |
getSelectedIndex()
Specifies the number of visible options in a drop-down list
|
Option |
getSelectedOption()
Is looking for current selected option.
|
java.util.List<Option> |
getSelectedOptions()
Is looking for current selected option.
|
int |
getSize()
Specifies the number of visible options in a drop-down list
|
boolean |
isDisabled()
Specifies that a drop-down list should be disabled
|
boolean |
isMultiple()
Specifies that multiple options can be selected
|
Select |
offAllOptions()
Sets off all options comply OptionGroup elements.
|
Select |
setDisabled(boolean disabled)
Set "disabled" property and if element was draw call script at browser.
|
Select |
setMultiple(boolean multiple)
Set "multiple" property and if element was draw call script at browser.
|
Select |
setName(java.lang.String name)
Set "name" property and if element was draw call script at browser.
|
Select |
setSelectedIndex(java.lang.Integer selectedIndex)
Set "selectedIndex" property and if element was draw call script at
browser
|
Select |
setSize(int size)
Set "size" property and if element was draw call script at browser
|
add, addAllDropTargets, addDropTarget, addStyleClass, alert, assignText, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, findElement, findEventOptions, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getContenteditableValue, getDir, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyle, getStyleClass, getStyles, getTabIndex, getText, getTitle, getTypeEvents, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isListening, listenerOff, listenerOn, print, prompt, remove, remove, removeDropTarget, removeEventOptions, removeParent, removeStyle, removeStyleClass, removeStyles, replace, replaceStyleClass, setChangeChildrenSet, setContenteditable, setDir, setDrawn, setEventOptions, setLang, setParent, setStyle, setStyleClass, setStyles, setTabIndex, setText, setTitle
public int getIndexOfOption(Option option)
option
- for determined they indexpublic Option getOptionAtIndex(int index)
index
- of optionpublic Option findOptionByValue(java.lang.String value)
value
- of optionpublic Option getSelectedOption()
public java.util.List<Option> getSelectedOptions()
public Select offAllOptions()
public Select assignValue(org.json.JSONArray value)
value
- JOSN array contains indexes list of selected optionpublic boolean isDisabled()
public Select setDisabled(boolean disabled)
disabled
- the disabled to set. Call set "disabled" property of element
at browser.public boolean isMultiple()
public Select setMultiple(boolean multiple)
multiple
- the multiple to set. Call set "multiple" property of element
at browser.public int getSize()
public Select setSize(int size)
size
- the size to set. Call set "size" property of element at
browser.public java.lang.Integer getSelectedIndex()
public Select setSelectedIndex(java.lang.Integer selectedIndex)
selectedIndex
- the selectedIndex to set. Call set "selectedIndex" property of
element at browser.public Select assignSelectedIndex(int selectedIndex)
selectedIndex
- of optionpublic java.lang.String getName()
public Select setName(java.lang.String name)
name
- the name to set. If is null call set empty property value of
element at browser. If not null call set "name" property of
element at browser.