planetj.html
Class HTMLInput

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

public class HTMLInput
extends HTMLElement

!!DA (8/6/2003 9:05:52 AM) - documentation needed

Author:
PlanetJ Corporation

Field Summary
static String BUTTON
           
static String CHECKBOX
           
static String CHECKED
           
static String className
          Class name.
static String FILE
           
static String HIDDEN
           
static String PASSWORD
           
static String RADIO
           
static String READONLY
           
static int SELECTED_BY_FIELD
           
static int SELECTED_FALSE
           
static int SELECTED_TRUE
           
static String SUBMIT
           
static String TEXT
           
static String TYPE
           
static int TYPE_BUTTON
           
static int TYPE_CHECKBOX
           
static int TYPE_FILE
           
static int TYPE_HIDDEN
           
static int TYPE_PASSWORD
           
static int TYPE_RADIO
           
static int TYPE_SUBMIT
           
static int TYPE_TEXT
           
 
Fields inherited from class planetj.html.HTMLElement
DISABLED
 
Constructor Summary
HTMLInput()
           
 
Method Summary
static StringBuffer appendCheckbox(String id, Field field, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a HTML checkbox input for the given Field and arguements.
static StringBuffer appendClass(int type, Field field, FieldDescriptorRow fd, StringBuffer html, ExecutingContext ec)
          Appends an inputs class attribute to the given buffer depending upon the input type.
static StringBuffer appendFileInput(String id, Field field, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a HTML file input for the given Field and arguements.
static StringBuffer appendHiddenInput(String id, Field field, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a HTML checkbox input for the given Field and arguements.
static StringBuffer appendHiddenInput(String name, int value, StringBuffer html)
          Appends HTML code for a hidden input field for the given input name and value.
static StringBuffer appendHiddenInput(String name, String value, StringBuffer html)
          Appends HTML code for a hidden input field for the given input name and value.
static StringBuffer appendInput(String id, Field field, int size, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates an HTML input for the given Field.
static StringBuffer appendPasswordInput(String id, Field field, int size, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a HTML text input for the given Field and arguements.
static StringBuffer appendRadioButton(String id, Field field, boolean setValueAsDisplayValue, boolean appendExtractableHiddenField, int selectedDefault, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a HTML radio input for the given Field and arguements.
static StringBuffer appendRadioButton(String id, Field field, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a HTML radio input for the given Field and arguements.
static StringBuffer appendTextInput(String id, Field field, int size, String attributes, String rcNavKey, String rowNavKey, StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a HTML text input for the given Field and arguements.
 
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

TEXT

public static final String TEXT
See Also:
Constant Field Values

PASSWORD

public static final String PASSWORD
See Also:
Constant Field Values

HIDDEN

public static final String HIDDEN
See Also:
Constant Field Values

CHECKBOX

public static final String CHECKBOX
See Also:
Constant Field Values

RADIO

public static final String RADIO
See Also:
Constant Field Values

BUTTON

public static final String BUTTON
See Also:
Constant Field Values

SUBMIT

public static final String SUBMIT
See Also:
Constant Field Values

FILE

public static final String FILE
See Also:
Constant Field Values

TYPE_TEXT

public static final int TYPE_TEXT
See Also:
Constant Field Values

TYPE_PASSWORD

public static final int TYPE_PASSWORD
See Also:
Constant Field Values

TYPE_HIDDEN

public static final int TYPE_HIDDEN
See Also:
Constant Field Values

TYPE_CHECKBOX

public static final int TYPE_CHECKBOX
See Also:
Constant Field Values

TYPE_RADIO

public static final int TYPE_RADIO
See Also:
Constant Field Values

TYPE_BUTTON

public static final int TYPE_BUTTON
See Also:
Constant Field Values

SELECTED_FALSE

public static final int SELECTED_FALSE
See Also:
Constant Field Values

SELECTED_BY_FIELD

public static final int SELECTED_BY_FIELD
See Also:
Constant Field Values

SELECTED_TRUE

public static final int SELECTED_TRUE
See Also:
Constant Field Values

TYPE_SUBMIT

public static final int TYPE_SUBMIT
See Also:
Constant Field Values

TYPE_FILE

public static final int TYPE_FILE
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

CHECKED

public static final String CHECKED
See Also:
Constant Field Values

READONLY

public static final String READONLY
See Also:
Constant Field Values

className

public static final String className
Class name.

Constructor Detail

HTMLInput

public HTMLInput()
Method Detail

appendCheckbox

public static StringBuffer appendCheckbox(String id,
                                          Field field,
                                          String attributes,
                                          String rcNavKey,
                                          String rowNavKey,
                                          StringBuffer html,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws CMException
Generates a HTML checkbox input for the given Field and arguements.

CMException

appendClass

public static StringBuffer appendClass(int type,
                                       Field field,
                                       FieldDescriptorRow fd,
                                       StringBuffer html,
                                       ExecutingContext ec)
Appends an inputs class attribute to the given buffer depending upon the input type.


appendFileInput

public static StringBuffer appendFileInput(String id,
                                           Field field,
                                           String attributes,
                                           String rcNavKey,
                                           String rowNavKey,
                                           StringBuffer html,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response)
                                    throws CMException
Generates a HTML file input for the given Field and arguements.

CMException

appendHiddenInput

public static StringBuffer appendHiddenInput(String name,
                                             int value,
                                             StringBuffer html)
Appends HTML code for a hidden input field for the given input name and value.

Parameters:
name - name for the hidden field
value - value for the hidden field
html - buffer to append html code to

appendHiddenInput

public static StringBuffer appendHiddenInput(String name,
                                             String value,
                                             StringBuffer html)
Appends HTML code for a hidden input field for the given input name and value.

Parameters:
name - name for the hidden field
value - value for the hidden field
html - buffer to append html code to

appendHiddenInput

public static StringBuffer appendHiddenInput(String id,
                                             Field field,
                                             String rcNavKey,
                                             String rowNavKey,
                                             StringBuffer html,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws CMException
Generates a HTML checkbox input for the given Field and arguements.

CMException

appendInput

public static StringBuffer appendInput(String id,
                                       Field field,
                                       int size,
                                       String attributes,
                                       String rcNavKey,
                                       String rowNavKey,
                                       StringBuffer html,
                                       javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                throws CMException
Generates an HTML input for the given Field.

Parameters:
id - the name of the input
field - Field to generate input for
size - size of input
attributes - attributes to attach to the input (e.g. onClick)
rcNavKey - navigation key of the Field's RowCollection
rowNavKey - navigation key for the Field's Row
html - StringBuffer to append HTML input to
request - HttpServletRequest sent from client
response - HttpServletResponse to send to client
Returns:
StringBuffer HTML input was appended to.
CMException

appendPasswordInput

public static StringBuffer appendPasswordInput(String id,
                                               Field field,
                                               int size,
                                               String attributes,
                                               String rcNavKey,
                                               String rowNavKey,
                                               StringBuffer html,
                                               javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response)
                                        throws CMException
Generates a HTML text input for the given Field and arguements.

CMException

appendRadioButton

public static StringBuffer appendRadioButton(String id,
                                             Field field,
                                             String attributes,
                                             String rcNavKey,
                                             String rowNavKey,
                                             StringBuffer html,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws CMException
Generates a HTML radio input for the given Field and arguements.

CMException

appendRadioButton

public static StringBuffer appendRadioButton(String id,
                                             Field field,
                                             boolean setValueAsDisplayValue,
                                             boolean appendExtractableHiddenField,
                                             int selectedDefault,
                                             String attributes,
                                             String rcNavKey,
                                             String rowNavKey,
                                             StringBuffer html,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws CMException
Generates a HTML radio input for the given Field and arguements.

Parameters:
setValueAsDisplayValue - if false the value will be set as the fields display value
CMException

appendTextInput

public static StringBuffer appendTextInput(String id,
                                           Field field,
                                           int size,
                                           String attributes,
                                           String rcNavKey,
                                           String rowNavKey,
                                           StringBuffer html,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response)
                                    throws CMException
Generates a HTML text input for the given Field and arguements.

CMException