Class DropdownList

All Implemented Interfaces:
Component, Serializable, Cloneable

public class DropdownList extends SelectList
A HTML select element with size=1
See Also:
  • Constructor Details

    • DropdownList

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

      public DropdownList(String name)
      Constructor with name.
      Parameters:
      name - the name of the form element
    • DropdownList

      public DropdownList(String name, Collection<?> list)
      Constructor with name and content list.
      Parameters:
      name - the name of the form element
      list - the content list
    • DropdownList

      public DropdownList(String name, Object[] arr)
      Constructor with name and content list.
      Parameters:
      name - the name of the form element
      arr - the content array
    • DropdownList

      public DropdownList(String name, 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(String name, Collection<?> list, boolean showNull, 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(String name, Collection<?> list, boolean showNull, String selected, 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