Business Components

oracle.jdeveloper.html
Class HTMLSelect

java.lang.Object
  |
  +--oracle.jdeveloper.html.HTMLElement
        |
        +--oracle.jdeveloper.html.HTMLSelect

public class HTMLSelect
extends HTMLElement

Represents an HTML SELECT field. The SELECT FIELD is used to present a selection list to the user. If the SELECT field allows selection of multiple values, a comman delimited list is sent to the HTML FORM processor.

Version:
PUBLIC

Field Summary
TypeField
protected  java.util.Vector Elements
           
protected  com.sun.java.util.collections.HashMap htmlAttributes
           
 
Fields inherited from class oracle.jdeveloper.html.HTMLElement
sClassName
 
Constructor Summary
TypeConstructor
  HTMLSelect()
          contructs the SELECT object providing the field's name.
  HTMLSelect(java.lang.String sName)
          contructs the SELECT object providing the field's name.
  HTMLSelect(java.lang.String sName, boolean bMultiple)
          contructs the SELECT object providing the field's name and a boolean for enabling/disabling multiple selection.
protected HTMLSelect(java.lang.String sName, boolean bMultiple, java.lang.String sClass)
           
  HTMLSelect(java.lang.String sName, java.lang.String sClass)
          contructs the SELECT object providing the field's name and the CSS class name.
 
Method Summary
TypeMethod
 void addOption(java.lang.String sOption)
          Adds an option to the list.
 void addOption(java.lang.String sOption, java.lang.String sValue)
          Adds an option to the list.
 void addSelectedOption(java.lang.String sOption)
          Adds a selected option to the list.
 void addSelectedOption(java.lang.String sOption, java.lang.String sValue)
          Adds a selected option to the list.
 void clearMultiple()
          Disables multiple selection.
 java.lang.String getHeight()
           
 java.lang.String getName()
           
 java.lang.String getWidth()
           
 void render(java.io.PrintWriter out)
           
 void setHeight(java.lang.String sHeight)
          Sets the field height
 void setHtmlAttributes(com.sun.java.util.collections.HashMap attrs)
           
 void setMultiple()
           
 void setName(java.lang.String name)
           
 void setWidth(java.lang.String sWidth)
          Sets the field width
 
Methods inherited from class oracle.jdeveloper.html.HTMLElement
fixFieldValueForHTML, getAsString, getCSSClassName, quote, render, setCSSClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

htmlAttributes

protected com.sun.java.util.collections.HashMap htmlAttributes

Elements

protected java.util.Vector Elements
Constructor Detail

HTMLSelect

public HTMLSelect()
contructs the SELECT object providing the field's name.

HTMLSelect

public HTMLSelect(java.lang.String sName)
contructs the SELECT object providing the field's name.

HTMLSelect

public HTMLSelect(java.lang.String sName,
                  boolean bMultiple)
contructs the SELECT object providing the field's name and a boolean for enabling/disabling multiple selection.

HTMLSelect

public HTMLSelect(java.lang.String sName,
                  java.lang.String sClass)
contructs the SELECT object providing the field's name and the CSS class name.

HTMLSelect

protected HTMLSelect(java.lang.String sName,
                     boolean bMultiple,
                     java.lang.String sClass)
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setMultiple

public void setMultiple()

clearMultiple

public void clearMultiple()
Disables multiple selection.

setWidth

public void setWidth(java.lang.String sWidth)
Sets the field width

getWidth

public java.lang.String getWidth()

setHeight

public void setHeight(java.lang.String sHeight)
Sets the field height

getHeight

public java.lang.String getHeight()

setHtmlAttributes

public final void setHtmlAttributes(com.sun.java.util.collections.HashMap attrs)

addOption

public void addOption(java.lang.String sOption)
Adds an option to the list.
Parameters:
sOption - string value of the new option

addSelectedOption

public void addSelectedOption(java.lang.String sOption)
Adds a selected option to the list.
Parameters:
sOption - string value of the new option

addOption

public void addOption(java.lang.String sOption,
                      java.lang.String sValue)
Adds an option to the list.
Parameters:
sOption - string value of the new option
sValue - the value for the new option.

addSelectedOption

public void addSelectedOption(java.lang.String sOption,
                              java.lang.String sValue)
Adds a selected option to the list.
Parameters:
sOption - string value of the new option
sValue - the value for the new option.

render

public void render(java.io.PrintWriter out)
Overrides:
render in class HTMLElement

Business Components