Package com.groiss.gui.component
Class DropdownList
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.component.SelectList
com.groiss.gui.component.DropdownList
- All Implemented Interfaces:
Component
,Serializable
,Cloneable
A HTML select element with size=1
- See Also:
-
Field Summary
Fields inherited from class com.groiss.gui.component.SelectList
MULTIPLE, OPTGROUP, OPTION, SELECT, SELECTED, SIZE, VALUE
Fields inherited from class com.groiss.gui.AbstractComponent
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, parent, parentElem, READONLY, root, viewMode
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Constructor Summary
ConstructorDescriptionConstructs a new empty dropdown list component.DropdownList
(String name) Constructor with name.DropdownList
(String name, Object[] arr) Constructor with name and content list.DropdownList
(String name, Collection<?> list) Constructor with name and content list.DropdownList
(String name, Collection<?> list, boolean showNull) Constructor with name and content list.DropdownList
(String name, Collection<?> list, boolean showNull, String selected) Constructor with name and content list.DropdownList
(String name, Collection<?> list, boolean showNull, String selected, String styleClass) Constructor with name and content list. -
Method Summary
Methods inherited from class com.groiss.gui.component.SelectList
addOption, addOption, addOption, addOption, addOption, addOption, addOptions, clear, deleteOption, deleteOption, deleteOption, getContent, getOption, getOptionIndex, getOptionText, getOptionTexts, getOptionValue, getOptionValues, getSelectedOption, getSelections, getSize, isSelected, removeSelection, removeSelections, setContent, setContent, setContent, setDisplayedSize, setMultiple, setSelectedOption, setSelectedOption, setSelectedOptions, showOptions
Methods inherited from class com.groiss.gui.AbstractComponent
addClass, clone, create, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setBrowserMode, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toggleClass, toString
-
Constructor Details
-
DropdownList
public DropdownList()Constructs a new empty dropdown list component. -
DropdownList
Constructor with name.- Parameters:
name
- the name of the form element
-
DropdownList
Constructor with name and content list.- Parameters:
name
- the name of the form elementlist
- the content list
-
DropdownList
Constructor with name and content list.- Parameters:
name
- the name of the form elementarr
- the content array
-
DropdownList
Constructor with name and content list.- Parameters:
name
- the name of the form elementlist
- the content listshowNull
- if true, add the option with value and display string empty to the begin of the list
-
DropdownList
Constructor with name and content list.- Parameters:
name
- the name of the form elementlist
- the content listshowNull
- if true, add the option with value and display string empty to the begin of the listselected
- the option where the value equals this argument is selected
-
DropdownList
public DropdownList(String name, Collection<?> list, boolean showNull, String selected, String styleClass) Constructor with name and content list.- Parameters:
name
- the name of the form elementlist
- the content listshowNull
- if true, add the option with value and display string empty to the begin of the listselected
- the option where the value equals this argument is selectedstyleClass
- the name of a CSS class
-