|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.html.HTMLElement | +--planetj.html.HTMLInput
!!DA (8/6/2003 9:05:52 AM) - documentation needed
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 |
public static final String TEXT
public static final String PASSWORD
public static final String HIDDEN
public static final String CHECKBOX
public static final String RADIO
public static final String BUTTON
public static final String SUBMIT
public static final String FILE
public static final int TYPE_TEXT
public static final int TYPE_PASSWORD
public static final int TYPE_HIDDEN
public static final int TYPE_CHECKBOX
public static final int TYPE_RADIO
public static final int TYPE_BUTTON
public static final int SELECTED_FALSE
public static final int SELECTED_BY_FIELD
public static final int SELECTED_TRUE
public static final int TYPE_SUBMIT
public static final int TYPE_FILE
public static final String TYPE
public static final String CHECKED
public static final String READONLY
public static final String className
Constructor Detail |
public HTMLInput()
Method Detail |
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
CMException
public static StringBuffer appendClass(int type, Field field, FieldDescriptorRow fd, StringBuffer html, ExecutingContext ec)
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
CMException
public static StringBuffer appendHiddenInput(String name, int value, StringBuffer html)
name
- name for the hidden fieldvalue
- value for the hidden fieldhtml
- buffer to append html code topublic static StringBuffer appendHiddenInput(String name, String value, StringBuffer html)
name
- name for the hidden fieldvalue
- value for the hidden fieldhtml
- buffer to append html code topublic 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
CMException
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
id
- the name of the inputfield
- Field to generate input forsize
- size of inputattributes
- attributes to attach to the input (e.g. onClick)rcNavKey
- navigation key of the Field's RowCollectionrowNavKey
- navigation key for the Field's Rowhtml
- StringBuffer to append HTML input torequest
- HttpServletRequest sent from clientresponse
- HttpServletResponse to send to client
CMException
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
CMException
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
CMException
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
setValueAsDisplayValue
- if false the value will be set as
the fields display value
CMException
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
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |