SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatTextarea
└─SwatXHTMLTextarea
public class SwatXHTMLTextarea
extends SwatTextarea
| Field Summary | |
|---|---|
| boolean | $allow_ignore_validation_errors Whether or not to allow the user to ignore validation errors. |
| protected boolean | Whether or not this XHTML entry has validation errors or not. |
| protected SwatCheckbox | Composite checkbox control used to ignore XHTML validation errors. |
| Fields inherited from Swat.SwatTextarea | |
|---|---|
| access_key, cols, maxlength, maxlength_ignored_characters, read_only, resizeable, rows, value | |
| Fields inherited from Swat.SwatInputControl | |
|---|---|
| required | |
| Method Summary | |
|---|---|
| protected void | Creates the composite checkbox used by this XHTML textarea. |
| void | display() Displays this widget. |
| protected SwatMessage | getValidationErrorMessage(array xml_errors) Gets a human readable error message for XHTML validation errors on this textarea's value. |
| void | process() Processes this widget. |
| Methods inherited from Swat.SwatTextarea | |
|---|---|
| display, getCSSClassNames, getFocusableHtmlId, getInlineJavaScript, getState, getTextareaTag, getValueLength, process, setState | |
| Methods inherited from Swat.SwatInputControl | |
|---|---|
| getForm, init | |
| Methods inherited from Swat.SwatControl | |
|---|---|
| addMessage, getNote, printWidgetTree | |
| Methods inherited from Swat.SwatWidget | |
|---|---|
| addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public boolean $allow_ignore_validation_errors = false
Whether or not to allow the user to ignore validation errors
Setting this property to true will present a checkbox to the user allowing the user to ignore validation errors generated by the XML parser.
protected boolean $has_validation_errors = false
Whether or not this XHTML entry has validation errors or not
protected SwatCheckbox $ignore_errors_checkbox
Composite checkbox control used to ignore XHTML validation errors
protected void createCompositeWidgets()
Creates the composite checkbox used by this XHTML textarea
public void display()
Displays this widget
Displays this widget displays as well as recursively displays any child widgets of this widget.
If this widget has not been initialized, it is automatically initialized before displaying.
protected SwatMessage getValidationErrorMessage(array xml_errors)
Gets a human readable error message for XHTML validation errors on this textarea's value
xml_errors - an array of LibXMLError objects.public void process()
Processes this widget
After a form submit, this widget processes itself and its dependencies and then recursively processes any of its child widgets.
Composite widgets of this widget are automatically processed as well.
If this widget has not been initialized, it is automatically initialized before processing.
A text area that validates its content as an XHTML fragment against the XHTML Strict DTD