Class QNumericTextBox
A subclass of TextBox with its validate method overridden -- Validate will also ensure
that the Text is a valid integer/float and (if applicable) is in the range of Minimum <= x <= Maximum.
This class is abstract. QIntegerTextBox and QFloatTextBox are derived from it.
-
QBaseClass
-
QHtmlAttributeManagerBase
-
QHtmlAttributeManager
-
QControlBase
-
QControl
-
QTextBoxBase
-
QTextBox
-
QNumericTextBox
Methods summary
public
|
#
__construct( QControl |QForm $objParentObject, null|string $strControlId = null )
Constructor for the control
Constructor for the control
Parameters
- $objParentObject
- $strControlId
Throws
Overrides
|
public
boolean
|
#
Validate( )
Returns
boolean whether or not the input passed all the values
Overrides
|
public
array|boolean|integer|mixed|null|QControl |QForm |string
|
#
__get( string $strName )
PHP __get magic method implementation
PHP __get magic method implementation
Parameters
- $strName
- Name of the property
Returns
Throws
Overrides
|
public
mixed
|
#
__set( string $strName, string $mixValue )
PHP __set magic method implementation
PHP __set magic method implementation
Parameters
- $strName
- Property Name
- $mixValue
- Property value
Returns
mixed
Throws
Overrides
|
public static
array
|
#
GetModelConnectorParams( )
Returns an description of the options available to modify by the designer for the code generator.
Returns an description of the options available to modify by the designer for the code generator.
Returns
array
Overrides
|
Methods inherited from QControlBase
AddAction(),
AddActionArray(),
AddAttributeScript(),
AddChildControl(),
AddCssFile(),
AddJavascriptFile(),
AddPluginCssFile(),
AddPluginJavascriptFile(),
AddWrapperCssClass(),
Blink(),
EvaluateTemplate(),
Focus(),
ForgetState(),
GetAllActions(),
GetAttributes(),
GetChildControl(),
GetChildControls(),
GetControlFromHierarchyByMethodName(),
GetCustomAttribute(),
GetCustomAttributes(),
GetCustomStyle(),
GetEndHtml(),
GetEndScript(),
GetForm(),
GetJavaScriptForEvent(),
GetJqControlId(),
GetNonWrappedHtml(),
GetStyleAttributes(),
GetTemplatePath(),
GetWrapperAttributes(),
GetWrapperStyleAttributes(),
GetWrapperStyler(),
IsDescendantOf(),
IsModified(),
MakeCurrent(),
MarkAsModified(),
MarkAsRendered(),
MarkAsWrapperModified(),
ProcessActionParameters(),
Refresh(),
RemoveAllActions(),
RemoveChildControl(),
RemoveChildControls(),
RemoveCustomAttribute(),
RemoveCustomStyle(),
RemoveWrapperCssClass(),
Render(),
RenderActionScripts(),
RenderAjax(),
RenderAttributeScripts(),
RenderChildren(),
RenderComment(),
RenderCssStyles(),
RenderExtensionRenderer(),
RenderHelper(),
RenderOutput(),
RenderWithError(),
RenderWithName(),
RenderWrappedOutput(),
ResetFlags(),
ResetOnPageStatus(),
SetCustomAttribute(),
SetCustomStyle(),
SetFocus(),
SetForm(),
SetParentControl(),
Sleep(),
SleepHelper(),
ValidateControlAndChildren(),
ValidationReset(),
VarExport(),
Wakeup(),
WakeupHelper(),
Watch(),
_CallActionMethod(),
_ProcessActionParams(),
_ReadState(),
_WriteState()
|
Methods inherited from QHtmlAttributeManagerBase
AddCssClass(),
GetCssStyle(),
GetDataAttribute(),
GetHtmlAttribute(),
GetHtmlAttributes(),
HasCssClass(),
HasCssStyle(),
HasHtmlAttribute(),
Override(),
RemoveCssClass(),
RemoveCssClassesByPrefix(),
RemoveCssStyle(),
RemoveDataAttribute(),
RemoveHtmlAttribute(),
RenderTag(),
SetCssBoxValue(),
SetCssClass(),
SetCssStyle(),
SetDataAttribute(),
SetHtmlAttribute()
|
Properties summary
protected
string
|
$strDataType
Data type of the input (float|integer)
Data type of the input (float|integer)
|
|
protected
mixed
|
$mixMaximum
|
|
protected
mixed
|
$mixMinimum
|
|
protected
mixed
|
$mixStep
Float or Integer value, the multiple of which the input must be
Float or Integer value, the multiple of which the input must be
|
|
protected
string
|
$strLabelForLess
Text to show when the input value is less than minimum allowed value
Text to show when the input value is less than minimum allowed value
|
|
protected
string
|
$strLabelForGreater
Text to show when the input value is greater than the maximum allowed value
Text to show when the input value is greater than the maximum allowed value
|
|
protected
string
|
$strLabelForNotStepAligned
Text to show when the input value is not step aligned
Text to show when the input value is not step aligned
|
|
Properties inherited from QTextBoxBase
$blnAutoTrim,
$intColumns,
$intMaxLength,
$intMinLength,
$intRows,
$intSanitizeFilter,
$intValidateFilter,
$mixSanitizeFilterOptions,
$mixValidateFilterOptions,
$objHTMLPurifierConfig,
$strCrossScripting,
$strFormat,
$strLabelForInvalid,
$strLabelForRequired,
$strLabelForRequiredUnnamed,
$strLabelForTooLong,
$strLabelForTooLongUnnamed,
$strLabelForTooShort,
$strLabelForTooShortUnnamed,
$strPlaceholder,
$strText,
$strTextMode
|
Properties inherited from QControlBase
$blnActionsMustTerminate,
$blnAutoRender,
$blnDisplay,
$blnIsBlockElement,
$blnMinimize,
$blnModified,
$blnOnPage,
$blnRendered,
$blnRendering,
$blnRequired,
$blnSaveState,
$blnScriptsOnly,
$blnUseWrapper,
$blnVisible,
$blnWrapLabel,
$blnWrapperModified,
$mixActionParameter,
$mixCausesValidation,
$objActionArray,
$objChildControlArray,
$objDraggable,
$objDroppable,
$objForm,
$objLinkedNode,
$objParentControl,
$objResizable,
$objWatcher,
$objWrapperStyler,
$strAttributeScripts,
$strControlId,
$strCustomAttributeArray,
$strCustomStyleArray,
$strFormAttributes,
$strHtmlAfter,
$strHtmlBefore,
$strInstructions,
$strJavaScripts,
$strName,
$strPreferredRenderMethod,
$strRenderMethod,
$strStyleSheets,
$strValidationError,
$strWarning
|
Magic properties summary
public
mixed
|
$Maximum
(optional) is the maximum value the integer/float can be
|
public
mixed
|
$Minimum
(optional) is the minimum value the integer/float can be
|
public
mixed
|
$Step
(optional) is the step interval for allowed values ( beginning from $Minimum if set)
|
public
string
|
$LabelForGreater
Text to show when the input is greater than the allowed value
|
public
string
|
$LabelForLess
Text to show when the input is lesser than the minimum allowed value
|
public
string
|
$LabelForNotStepAligned
set this property to show an error message if the entered value is not step-aligned if not set the value is changed to the next step-aligned value (no error)
|
Magic properties inherited from QTextBoxBase
$AutoTrim,
$Columns,
$CrossScripting,
$Format,
$LabelForInvalid,
$LabelForRequired,
$LabelForRequiredUnnamed,
$LabelForTooLong,
$LabelForTooLongUnnamed,
$LabelForTooShort,
$LabelForTooShortUnnamed,
$MaxLength,
$MinLength,
$Placeholder,
$Rows,
$SanitizeFilter,
$SanitizeFilterOptions,
$Text,
$TextMode,
$ValidateFilter,
$ValidateFilterOptions,
$Value
|
Magic properties inherited from QControlBase
$ActionParameter,
$ActionsMustTerminate,
$AutoRender,
$CausesValidation,
$ControlId,
$Form,
$FormAttributes,
$HtmlAfter,
$HtmlBefore,
$Instructions,
$JavaScripts,
$LinkedNode,
$Minimize,
$Modified,
$Moveable,
$Name,
$OnPage,
$ParentControl,
$PreferredRenderMethod,
$RenderMethod,
$Rendered,
$Rendering,
$Required,
$Resizable,
$SaveState,
$ScriptsOnly,
$StyleSheets,
$UseWrapper,
$ValidationError,
$Visible,
$Warning,
$WrapLabel,
$WrapperCssClass,
$WrapperModified
|
Magic properties inherited from QHtmlAttributeManagerBase
$AccessKey,
$AltText,
$BackColor,
$BorderCollapse,
$BorderColor,
$BorderStyle,
$BorderWidth,
$CssClass,
$Cursor,
$Data,
$Display,
$DisplayStyle,
$Enabled,
$FontBold,
$FontItalic,
$FontNames,
$FontOverline,
$FontSize,
$FontStrikeout,
$FontUnderline,
$ForeColor,
$Height,
$HorizontalAlign,
$Left,
$Margin,
$NoWrap,
$Opacity,
$OrderedListType,
$Overflow,
$Padding,
$Position,
$ReadOnly,
$TabIndex,
$ToolTip,
$Top,
$UnorderedListStyle,
$VerticalAlign,
$Width
|