planetj.html
Class HTMLSelect

java.lang.Object
  extended byplanetj.html.HTMLElement
      extended byplanetj.html.HTMLSelect
Direct Known Subclasses:
FieldHTMLSelect

public class HTMLSelect
extends HTMLElement

!!DA (8/6/2003 9:24:30 AM) - documentation needed

Author:
PlanetJ Corporation

Field Summary
static java.lang.String className
          Class name.
static java.lang.String MULTIPLE
          Attribute used to denote if mutliple selection is allowed.
static int MULTIPLE_SELECTION
           
static java.lang.String SELECT
          Select tag.
static int SINGLE_SELECTION
          Variables indicating the selecting mode.
 
Fields inherited from class planetj.html.HTMLElement
DISABLED, FOCUS_HTML_INPUT
 
Constructor Summary
HTMLSelect()
           
 
Method Summary
static java.lang.StringBuffer appendOption(java.lang.String value, java.lang.String displayValue, boolean selected, java.lang.String styleClass, java.lang.StringBuffer html)
          Appends a HTML option tag for the given values.
static java.lang.StringBuffer appendRadioButtonSelect(java.lang.String id, Field field, int size, boolean mulitpleSelection, boolean forceValueIntoList, java.lang.String attributes, java.lang.String rcNavKey, java.lang.String rowNavKey, java.lang.StringBuffer html, HttpServletRequest request, HttpServletResponse response)
          !!C MT (4/23/2003 1:10:27 PM) This class is almost the same as the planetj.html.HTMLSelect.appendSelect and should be revised when the HTML design of WOW is reworked.
static java.lang.StringBuffer appendRadioButtonSelect(java.lang.String id, Field field, int size, boolean mulitpleSelection, java.lang.String attributes, java.lang.String rcNavKey, java.lang.String rowNavKey, java.lang.StringBuffer html, HttpServletRequest request, HttpServletResponse response)
          Deprecated. (6/27/2003 5:07:12 PM) this method needs to be coded.... currently it doesn't generate a radio button select
static java.lang.StringBuffer appendSelect(java.lang.String id, Field field, int size, boolean mulitpleSelection, boolean forceValueIntoList, java.lang.String attributes, java.lang.String rcNavKey, java.lang.String rowNavKey, java.lang.StringBuffer html, HttpServletRequest request, HttpServletResponse response)
           
static java.lang.StringBuffer appendSelect(java.lang.String id, Field field, int size, boolean mulitpleSelection, java.lang.String attributes, java.lang.String rcNavKey, java.lang.String rowNavKey, java.lang.StringBuffer html, HttpServletRequest request, HttpServletResponse response)
           
 int getSize()
          Returns the number of items to show at once.
 boolean isMultipleSelection()
          Returns whether or not the selection mode is multiple selection.
static boolean isMultipleSelection(int selection)
          Returns whether or not the selection mode is multiple selection.
 
Methods inherited from class planetj.html.HTMLElement
appendAttribute, appendAttribute, appendExtractableHiddenField, getFocusHTMLInput, getId, isDisplayField, setFocusHTMLInput, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT

public static final java.lang.String SELECT
Select tag.

See Also:
Constant Field Values

MULTIPLE

public static final java.lang.String MULTIPLE
Attribute used to denote if mutliple selection is allowed.

See Also:
Constant Field Values

className

public static final java.lang.String className
Class name.


SINGLE_SELECTION

public static final int SINGLE_SELECTION
Variables indicating the selecting mode.

See Also:
Constant Field Values

MULTIPLE_SELECTION

public static final int MULTIPLE_SELECTION
See Also:
Constant Field Values
Constructor Detail

HTMLSelect

public HTMLSelect()
Method Detail

appendOption

public static java.lang.StringBuffer appendOption(java.lang.String value,
                                                  java.lang.String displayValue,
                                                  boolean selected,
                                                  java.lang.String styleClass,
                                                  java.lang.StringBuffer html)
Appends a HTML option tag for the given values.


appendRadioButtonSelect

public static java.lang.StringBuffer appendRadioButtonSelect(java.lang.String id,
                                                             Field field,
                                                             int size,
                                                             boolean mulitpleSelection,
                                                             java.lang.String attributes,
                                                             java.lang.String rcNavKey,
                                                             java.lang.String rowNavKey,
                                                             java.lang.StringBuffer html,
                                                             HttpServletRequest request,
                                                             HttpServletResponse response)
                                                      throws CMException
Deprecated. (6/27/2003 5:07:12 PM) this method needs to be coded.... currently it doesn't generate a radio button select

Throws:
CMException

appendRadioButtonSelect

public static java.lang.StringBuffer appendRadioButtonSelect(java.lang.String id,
                                                             Field field,
                                                             int size,
                                                             boolean mulitpleSelection,
                                                             boolean forceValueIntoList,
                                                             java.lang.String attributes,
                                                             java.lang.String rcNavKey,
                                                             java.lang.String rowNavKey,
                                                             java.lang.StringBuffer html,
                                                             HttpServletRequest request,
                                                             HttpServletResponse response)
                                                      throws CMException
!!C MT (4/23/2003 1:10:27 PM) This class is almost the same as the planetj.html.HTMLSelect.appendSelect and should be revised when the HTML design of WOW is reworked.

Throws:
CMException

appendSelect

public static java.lang.StringBuffer appendSelect(java.lang.String id,
                                                  Field field,
                                                  int size,
                                                  boolean mulitpleSelection,
                                                  java.lang.String attributes,
                                                  java.lang.String rcNavKey,
                                                  java.lang.String rowNavKey,
                                                  java.lang.StringBuffer html,
                                                  HttpServletRequest request,
                                                  HttpServletResponse response)
                                           throws CMException
Throws:
CMException

appendSelect

public static java.lang.StringBuffer appendSelect(java.lang.String id,
                                                  Field field,
                                                  int size,
                                                  boolean mulitpleSelection,
                                                  boolean forceValueIntoList,
                                                  java.lang.String attributes,
                                                  java.lang.String rcNavKey,
                                                  java.lang.String rowNavKey,
                                                  java.lang.StringBuffer html,
                                                  HttpServletRequest request,
                                                  HttpServletResponse response)
                                           throws CMException
Throws:
CMException

getSize

public int getSize()
Returns the number of items to show at once.

Returns:
int

isMultipleSelection

public boolean isMultipleSelection()
Returns whether or not the selection mode is multiple selection.

Returns:
boolean

isMultipleSelection

public static boolean isMultipleSelection(int selection)
Returns whether or not the selection mode is multiple selection.

Returns:
boolean