planetj.html
Class HTMLSelect

java.lang.Object
  |
  +--planetj.html.HTMLElement
        |
        +--planetj.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 String className
          Class name.
static String MULTIPLE
          Attribute used to denote if mutliple selection is allowed.
static int MULTIPLE_SELECTION
           
static String SELECT
          Select tag.
static int SINGLE_SELECTION
          Variables indicating the selecting mode.
 
Fields inherited from class planetj.html.HTMLElement
DISABLED
 
Constructor Summary
HTMLSelect()
           
 
Method Summary
static StringBuffer appendOption(String value, String displayValue, boolean selected, String styleClass, StringBuffer html)
          Appends a HTML option tag for the given values.
static StringBuffer appendRadioButtonSelect(String id, Field field, int size, boolean mulitpleSelection, boolean forceValueIntoList, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.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 StringBuffer appendRadioButtonSelect(String id, Field field, int size, boolean mulitpleSelection, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.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 StringBuffer appendSelect(String id, Field field, int size, boolean mulitpleSelection, boolean forceValueIntoList, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static StringBuffer appendSelect(String id, Field field, int size, boolean mulitpleSelection, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.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, getId, isDisplayField, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT

public static final String SELECT
Select tag.

See Also:
Constant Field Values

MULTIPLE

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

See Also:
Constant Field Values

className

public static final 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 StringBuffer appendOption(String value,
                                        String displayValue,
                                        boolean selected,
                                        String styleClass,
                                        StringBuffer html)
Appends a HTML option tag for the given values.


appendRadioButtonSelect

public static StringBuffer appendRadioButtonSelect(String id,
                                                   Field field,
                                                   int size,
                                                   boolean mulitpleSelection,
                                                   String attributes,
                                                   String rcNavKey,
                                                   String rowNavKey,
                                                   StringBuffer html,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.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

CMException

appendRadioButtonSelect

public static StringBuffer appendRadioButtonSelect(String id,
                                                   Field field,
                                                   int size,
                                                   boolean mulitpleSelection,
                                                   boolean forceValueIntoList,
                                                   String attributes,
                                                   String rcNavKey,
                                                   String rowNavKey,
                                                   StringBuffer html,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.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.

CMException

appendSelect

public static StringBuffer appendSelect(String id,
                                        Field field,
                                        int size,
                                        boolean mulitpleSelection,
                                        String attributes,
                                        String rcNavKey,
                                        String rowNavKey,
                                        StringBuffer html,
                                        javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response)
                                 throws CMException
CMException

appendSelect

public static StringBuffer appendSelect(String id,
                                        Field field,
                                        int size,
                                        boolean mulitpleSelection,
                                        boolean forceValueIntoList,
                                        String attributes,
                                        String rcNavKey,
                                        String rowNavKey,
                                        StringBuffer html,
                                        javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response)
                                 throws CMException
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