com.groiss.gui.component
Class DropdownList

java.lang.Object
  extended by com.groiss.gui.AbstractComponent
      extended by com.groiss.gui.component.SelectList
          extended by com.groiss.gui.component.DropdownList
All Implemented Interfaces:
Component, java.io.Serializable, java.lang.Cloneable

public class DropdownList
extends SelectList

A HTML select element with size=1

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.groiss.gui.component.SelectList
MULTIPLE, OPTION, SELECT, SELECTED, SELECTLIST, SIZE, VALUE
 
Fields inherited from class com.groiss.gui.AbstractComponent
actions, 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, outputter, parent, parentElem, READONLY, root, viewMode
 
Constructor Summary
DropdownList()
          Constructs a new empty dropdown list component.
DropdownList(java.lang.String name)
          Constructor with name.
DropdownList(java.lang.String name, java.util.Collection list)
          Constructor with name and content list.
DropdownList(java.lang.String name, java.util.Collection list, boolean showNull)
          Constructor with name and content list.
DropdownList(java.lang.String name, java.util.Collection list, boolean showNull, java.lang.String selected)
          Constructor with name and content list.
DropdownList(java.lang.String name, java.util.Collection list, boolean showNull, java.lang.String selected, java.lang.String styleClass)
          Constructor with name and content list.
DropdownList(java.lang.String name, java.lang.Object[] arr)
          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
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DropdownList

public DropdownList()
Constructs a new empty dropdown list component.


DropdownList

public DropdownList(java.lang.String name)
Constructor with name.

Parameters:
name - the name of the form element

DropdownList

public DropdownList(java.lang.String name,
                    java.util.Collection list)
Constructor with name and content list.

Parameters:
name - the name of the form element
list - the content list

DropdownList

public DropdownList(java.lang.String name,
                    java.lang.Object[] arr)
Constructor with name and content list.

Parameters:
name - the name of the form element
arr - the content array

DropdownList

public DropdownList(java.lang.String name,
                    java.util.Collection list,
                    boolean showNull)
Constructor with name and content list.

Parameters:
name - the name of the form element
list - the content list
showNull - if true, add the option with value and display string empty to the begin of the list

DropdownList

public DropdownList(java.lang.String name,
                    java.util.Collection list,
                    boolean showNull,
                    java.lang.String selected)
Constructor with name and content list.

Parameters:
name - the name of the form element
list - the content list
showNull - if true, add the option with value and display string empty to the begin of the list
selected - the option where the value equals this argument is selected

DropdownList

public DropdownList(java.lang.String name,
                    java.util.Collection list,
                    boolean showNull,
                    java.lang.String selected,
                    java.lang.String styleClass)
Constructor with name and content list.

Parameters:
name - the name of the form element
list - the content list
showNull - if true, add the option with value and display string empty to the begin of the list
selected - the option where the value equals this argument is selected
styleClass - the name of a CSS class


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.