silverorange Code


Swat.SwatInputControl
/Swat/SwatInputControl.php at line 15

Class SwatInputControl

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl

public abstract class SwatInputControl
extends SwatControl

Base class for controls that accept user input on forms.

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
boolean

$required

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

Field Detail

/Swat/SwatInputControl.php at line 26

required

public boolean $required = false

Whether this entry widget is required or not

Must have a non-empty value when processed.


Method Detail

/Swat/SwatInputControl.php at line 60

getForm

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 .

Returns:
the form this control is in.
Throws:
SwatException

/Swat/SwatInputControl.php at line 38

init

public void init()

Initializes this widget

Sets required property on the form field that contains this widget.

See Also:
SwatWidget::init()

silverorange Code