planetj.html
Class SimpleHTMLSelect

java.lang.Object
  |
  +--planetj.html.HTMLElement
        |
        +--planetj.html.SimpleHTMLSelect

public class SimpleHTMLSelect
extends HTMLElement

Author:
PlanetJ Corporation

Field Summary
static int MULTIPLE_SELECTION
           
static int SINGLE_SELECTION
          Variables indicating the selecting mode.
 
Fields inherited from class planetj.html.HTMLElement
DISABLED
 
Constructor Summary
SimpleHTMLSelect()
          Creates a new HTMLSelect object and sets its id.
SimpleHTMLSelect(String id)
          Creates a new HTMLSelect object and sets its id.
 
Method Summary
 String generate(String[] pValues, String selectedValue)
          Generates a HTML Select from the given list of values (Combobox).
 String generate(String[] pValues, String[] selectedValues)
          Generates a HTML Select from the given list of values (Combobox).
 String generate(String attributes, List pValues, List selectedValues)
           
 String generate(String attributes, List pValues, String selectedValue)
           
 String generate(String attributes, String[] pValues, String selectedValue)
          Generates a HTML Select from the given list of values (Combobox).
 String generate(String attributes, String[] pValues, String[] selectedValues)
          Generates a HTML Select from the given list of values (Combobox).
 String generate(String attributes, String fldName, String dspFldName, RowCollection rowCol, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Generates HTML code for this HTMLSelect using the specified rows (RowCollection).
 String getDisplayValueSeparator()
           
 int getSize()
          Returns the number of items to show at once.
 boolean isIncludeValueWithDisplay()
           
 boolean isMultipleSelection()
          Returns whether or not the selection mode is multiple selection.
 void setDisplayValueSeparator(String separator)
           
 void setIncludeValueWithDisplay(boolean include)
           
 void setSize(int size)
          Sets the number of items to show at once.
 
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

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

SimpleHTMLSelect

public SimpleHTMLSelect()
Creates a new HTMLSelect object and sets its id.


SimpleHTMLSelect

public SimpleHTMLSelect(String id)
Creates a new HTMLSelect object and sets its id.

Parameters:
id - String
Method Detail

generate

public String generate(String[] pValues,
                       String[] selectedValues)
Generates a HTML Select from the given list of values (Combobox).

Parameters:
pValues - List
Returns:
String

generate

public String generate(String[] pValues,
                       String selectedValue)
Generates a HTML Select from the given list of values (Combobox).

Parameters:
pValues - List
Returns:
String

generate

public String generate(String attributes,
                       String[] pValues,
                       String[] selectedValues)
Generates a HTML Select from the given list of values (Combobox).

Parameters:
pValues - List
Returns:
String

generate

public String generate(String attributes,
                       String[] pValues,
                       String selectedValue)
Generates a HTML Select from the given list of values (Combobox).

Parameters:
pValues - List
Returns:
String

generate

public String generate(String attributes,
                       String fldName,
                       String dspFldName,
                       RowCollection rowCol,
                       String selectedVal,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
                throws CMException
Generates HTML code for this HTMLSelect using the specified rows (RowCollection).

Parameters:
fldName - String
selectedVal - String
Returns:
String
CMException

generate

public String generate(String attributes,
                       List pValues,
                       String selectedValue)

generate

public String generate(String attributes,
                       List pValues,
                       List selectedValues)

getDisplayValueSeparator

public String getDisplayValueSeparator()

getSize

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

Returns:
int

isIncludeValueWithDisplay

public boolean isIncludeValueWithDisplay()

isMultipleSelection

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

Returns:
boolean

setDisplayValueSeparator

public void setDisplayValueSeparator(String separator)

setIncludeValueWithDisplay

public void setIncludeValueWithDisplay(boolean include)

setSize

public void setSize(int size)
Sets the number of items to show at once.

Parameters:
size - int