org.apache.ecs
Class Select

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.MultiPartElement
                    |
                    +--org.apache.ecs.Select

public class Select
extends MultiPartElement

This class creates a <SELECT> tag.

Version:
$Id: Select.java,v 1.4 1999/04/22 01:35:06 stephan Exp $
Author:
Stephan Nagy, Jon S. Stevens

Fields inherited from class org.apache.ecs.MultiPartElement
v_element
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_filter, end_modifier, end_modifier_defined, filter_attribute_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined
 
Fields inherited from class org.apache.ecs.Element
case_type, codeset, element, end_element, filter, filter_state, position, VERSION
 
Constructor Summary
Select()
          Basic constructor.
Select(java.lang.String name)
          Basic Constructor.
Select(java.lang.String name, int size)
          Basic Constructor.
Select(java.lang.String name, Option[] element)
          Basic Constructor.
Select(java.lang.String name, java.lang.String size)
          Basic Constructor.
Select(java.lang.String name, java.lang.String[] element)
          Basic Constructor.
 
Method Summary
(package private)  void ()
          Private initializer
 Select addElement(Element element)
          Adds an Element to the Element.
 Select addElement(Option[] element)
          Adds a group of elements to the select element.
 Select addElement(java.lang.String element)
          Adds an Element to the Element.
 Select addElement(java.lang.String[] element)
          Creates a group of option elements and adds them to this select.
 Select setDisabled(boolean disabled)
          Sets the disabled value
 Select setMultiple(boolean multiple)
          Sets the multiple value
 Select setName(java.lang.String name)
          Sets the NAME="" attribute
 Select setSize(int size)
          Sets the SIZE="" attribute
 Select setSize(java.lang.String size)
          Sets the SIZE="" attribute
 Select setTabindex(int index)
          Sets the TABINDEX="" attribute
 Select setTabindex(java.lang.String index)
          Sets the TABINDEX="" attribute
 
Methods inherited from class org.apache.ecs.MultiPartElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
addAttribute, getAttributeFilter, getAttributeFilterState, getEndModifier, getEndModifierDefined, getStartModifier, getStartModifierDefined, hasAttribute, removeAttribute, removeEndModifier, removeStartModifier, setAttributeFilter, setAttributeFilterState, setClass, setDir, setEndModifier, setEndModifierDefined, setID, setLang, setModifier, setModifier, setStartModifier, setStartModifierDefined, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.Element
alterCase, getCase, getCodeSet, getElementHashEntry, getElementType, getFilter, getFilterState, getNeedClosingTag, getTagPosition, getVersion, setCase, setCodeSet, setElementType, setFilter, setFilterState, setNeedClosingTag, setTagPosition, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

Select

public Select()
Basic constructor. Use the set* methods.

Select

public Select(java.lang.String name)
Basic Constructor.
Parameters:
name - set the NAME="" attribute

Select

public Select(java.lang.String name,
              java.lang.String size)
Basic Constructor.
Parameters:
name - set the NAME="" attribute
name - set the SIZE="" attribute

Select

public Select(java.lang.String name,
              int size)
Basic Constructor.
Parameters:
name - set the NAME="" attribute
name - set the SIZE="" attribute

Select

public Select(java.lang.String name,
              java.lang.String[] element)
Basic Constructor.
Parameters:
name - set the NAME="" attribute
element - provide a group of strings to be converted to options elements.

Select

public Select(java.lang.String name,
              Option[] element)
Basic Constructor.
Parameters:
name - set the NAME="" attribute
element - provide a group of strings to be converted to options elements.
Method Detail

void ()
Private initializer
Overrides:
in class MultiPartElement

addElement

public Select addElement(Element element)
Adds an Element to the Element.
Parameters:
element - adds and Element to the Element.

addElement

public Select addElement(Option[] element)
Adds a group of elements to the select element.
Parameters:
element - adds a group of elements to the select element.

addElement

public Select addElement(java.lang.String element)
Adds an Element to the Element.
Parameters:
element - adds and Element to the Element.

addElement

public Select addElement(java.lang.String[] element)
Creates a group of option elements and adds them to this select.
Parameters:
element - adds a group of option elements to this select.

setName

public Select setName(java.lang.String name)
Sets the NAME="" attribute
Parameters:
name - the NAME="" attribute

setSize

public Select setSize(java.lang.String size)
Sets the SIZE="" attribute
Parameters:
size - the SIZE="" attribute

setSize

public Select setSize(int size)
Sets the SIZE="" attribute
Parameters:
size - the SIZE="" attribute

setMultiple

public Select setMultiple(boolean multiple)
Sets the multiple value
Parameters:
multiple - true or false

setTabindex

public Select setTabindex(java.lang.String index)
Sets the TABINDEX="" attribute
Parameters:
alt - the TABINDEX="" attribute

setTabindex

public Select setTabindex(int index)
Sets the TABINDEX="" attribute
Parameters:
alt - the TABINDEX="" attribute

setDisabled

public Select setDisabled(boolean disabled)
Sets the disabled value
Parameters:
disabled - true or false