| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectau.id.jericho.lib.html.FormControlOutputStylepublic final class FormControlOutputStyleextends java.lang.ObjectFormControl.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 theConfigDisplayValuenested class. Unless specified otherwise below, the normal output element is replaced with a display value element having the name specified in the staticConfigDisplayValue.ElementNameproperty (divby default). The attributes specified in the staticConfigDisplayValue.AttributeNameslist (id,classandstyleby 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
TEXTFILE- display value elementre-encodednormaloutput element's
valueTEXTAREA- display value element
TEXTAREAwith white space formattingCHECKBOXRADIO- normaloutput element
ConfigDisplayValue.CheckedHTMLConfigDisplayValue.UncheckedHTMLnormaloutput elementcheckednulloutput elementdisabledSELECT_SINGLESELECT_MULTIPLE- display value elementre-encoded
SELECT_MULTIPLEConfigDisplayValue.MultipleValueSeparator,PASSWORD- display value elementencoded
ConfigDisplayValue.PasswordChar*nnsubmission valueHIDDEN- output elementremoved
BUTTONSUBMITIMAGE- output elementdisabled
nullor an empty string, the display value element is given the un-encoded content specified in theConfigDisplayValue.EmptyHTMLstatic 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.