SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatEntry
└─SwatNumericEntry
└─SwatIntegerEntry
public class SwatIntegerEntry
extends SwatNumericEntry
| Fields inherited from Swat.SwatNumericEntry | |
|---|---|
| maximum_value, minimum_value, show_thousands_separator | |
| Fields inherited from Swat.SwatEntry | |
|---|---|
| access_key, autocomplete, maxlength, minlength, nonce, read_only, size, tab_index, value | |
| Fields inherited from Swat.SwatInputControl | |
|---|---|
| required | |
| Method Summary | |
|---|---|
| protected array | Gets the array of CSS classes that are applied to this entry. |
| protected string | getDisplayValue(string value) Formats an integer value to display. |
| protected mixed | getNumericValue(string value) Gets the numeric value of this widget. |
| protected SwatMessage | getValidationMessage(string id) Gets a validation message for this integer entry. |
| void | process() Checks to make sure value is an integer. |
| Methods inherited from Swat.SwatNumericEntry | |
|---|---|
| getCSSClassNames, getNumericValue, getValidationMessage, process | |
| Methods inherited from Swat.SwatEntry | |
|---|---|
| display, getCSSClassNames, getDisplayValue, getFocusableHtmlId, getInputTag, getNonce, getRawValue, getState, getValidationMessage, hasRawValue, 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 | |
protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this entry
protected string getDisplayValue(string value)
Formats an integer value to display
value - the value to format for display.protected mixed getNumericValue(string value)
Gets the numeric value of this widget
This allows each widget to parse raw values how they want to get numeric values.
value - the raw value to use to get the numeric value.protected SwatMessage getValidationMessage(string id)
Gets a validation message for this integer entry
id - the string identifier of the validation message.public void process()
Checks to make sure value is an integer
If the value of this widget is not an integer then an error message is attached to this widget.
An integer entry widget