SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
public abstract class SwatInputControl
extends SwatControl
| Field Summary | |
|---|---|
| boolean | Whether this entry widget is required or not. |
| Method Summary | |
|---|---|
| SwatForm | getForm() Gets the form that this control is contained in. |
| void | init() Initializes this widget. |
| 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 $required = false
Whether this entry widget is required or not
Must have a non-empty value when processed.
public SwatForm getForm()
Gets the form that this control is contained in
You can also get the parent form with the
SwatUIObject::getFirstAncestor() method but this method is more
convenient and throws an exception .
public void init()
Initializes this widget
Sets required property on the form field that contains this widget.
Base class for controls that accept user input on forms.