Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
au.id.jericho.lib.html.FormControlOutputStyle
public final class FormControlOutputStyle
extends java.lang.Object
FormControl.setOutputStyle(FormControlOutputStyle)
method.
Nested Class Summary | |
static class |
|
Field Summary | |
static FormControlOutputStyle |
|
static FormControlOutputStyle |
|
static FormControlOutputStyle |
|
Method Summary | |
String |
|
String |
|
public static final FormControlOutputStyle DISPLAY_VALUE
The normal output element is replaced with a simple representation of the form control's submission value(s). The implementation of this functionality is highly subjective, but provides a more aesthetic way of displaying a read-only version of a form without having to resort to using disabled controls. The representation is dependent on the form control type, and can be configured using the static properties of theConfigDisplayValue
nested class. Unless specified otherwise below, the normal output element is replaced with a display value element having the name specified in the staticConfigDisplayValue.ElementName
property (div
by default). The attributes specified in the staticConfigDisplayValue.AttributeNames
list (id
,class
andstyle
by default) are copied from the normal output element into the display value element. Details of the content of the display value element or other representation of the control value are as follows:If the submission value of the control is
TEXT
FILE
- display value elementre-encodednormaloutput element's
value
TEXTAREA
- display value element
TEXTAREA
with white space formattingCHECKBOX
RADIO
- normaloutput element
ConfigDisplayValue.CheckedHTML
ConfigDisplayValue.UncheckedHTML
normaloutput elementchecked
null
output elementdisabledSELECT_SINGLE
SELECT_MULTIPLE
- display value elementre-encoded
SELECT_MULTIPLE
ConfigDisplayValue.MultipleValueSeparator
,
PASSWORD
- display value elementencoded
ConfigDisplayValue.PasswordChar
*
nnsubmission valueHIDDEN
- output elementremoved
BUTTON
SUBMIT
IMAGE
- output elementdisabled
null
or an empty string, the display value element is given the un-encoded content specified in theConfigDisplayValue.EmptyHTML
static property.
public static final FormControlOutputStyle NORMAL
Normal display of the output element. This is the default display style.
public static final FormControlOutputStyle REMOVE
Remove the output element from the output document completely.
public String getDebugInfo()
Returns a string representation of this object useful for debugging purposes.
- Returns:
- a string representation of this object useful for debugging purposes.
public String toString()
Returns a string representation of this object useful for debugging purposes. This is equivalent togetDebugInfo()
.
- Returns:
- a string representation of this object useful for debugging purposes.