Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • BasicForm
  • CalculatorWidget
  • DataRepeaterExample
  • ExampleCheckColumn1
  • ExampleCheckColumn2
  • ExampleSingleForm
  • NestedTabForm
  • PaginatorForm
  • ParamsForm
  • PersistentExampleForm
  • PersonEditPanel
  • PluginEditForm
  • PluginManagerForm
  • ProjectEditPanel
  • ProjectListForm
  • ProjectViewPanel
  • QAccordion
  • QActionControl
  • QAutocomplete
  • QBlockControl
  • QButton
  • QButtonBase
  • QCalendar
  • QCheckBox
  • QCheckBoxLegacyColumn
  • QCheckBoxList
  • QControl
  • QControlBase
  • QControlGrouping
  • QControlLabel
  • QCsvTextBox
  • QDataGrid
  • QDataGrid_CheckBoxColumn
  • QDataGrid_SortEvent
  • QDataGridBase
  • QDataGridLegacy
  • QDataGridLegacyBase
  • QDataGridLegacyColumn
  • QDataGridLegacyRow
  • QDataGridLegacyRowStyle
  • QDataRepeater
  • QDatepicker
  • QDatepickerBox
  • QDateTimePicker
  • QDateTimeTextBox
  • QDialog
  • QDialogBox
  • QDraggable
  • QDroppable
  • QDropZoneGrouping
  • QEmailTextBox
  • QFileAsset
  • QFileAssetBase
  • QFileAssetDialog
  • QFileControl
  • QFilterType
  • QFloatTextBox
  • QFontFamily
  • QForm
  • QFormBase
  • QHListItem
  • QHtmlAttributeManager
  • QHtmlAttributeManagerBase
  • QHtmlTable
  • QHtmlTableBase
  • QImageBase
  • QImageBrowser
  • QImageBrowserBase
  • QImageBrowserNav
  • QImageBrowserThumbnails
  • QImageButton
  • QImageControl
  • QImageControlBase
  • QImageFileAsset
  • QImageLabel
  • QImageLabelBase
  • QImageRollover
  • QIntegerTextBox
  • QJqButton
  • QJqCheckBox
  • QJqRadioButton
  • QJsTimer
  • QJsTimerBase
  • QLabel
  • QLinkButton
  • QListBox
  • QListBoxBase
  • QListControl
  • QListItem
  • QListItemBase
  • QListItemStyle
  • QNumericTextBox
  • QPaginatedControl
  • QPaginator
  • QPaginatorBase
  • QPanel
  • QProgressbar
  • QRadioButton
  • QRadioButtonList
  • QResizable
  • QSampleControl
  • QSelectable
  • QSlider
  • QSortable
  • QTabs
  • QTagStyler
  • QTestControl
  • QTextBox
  • QTimerExpiredEvent
  • QTreeNav
  • QTreeNavItem
  • QUrlTextBox
  • QWaitIcon
  • QWriteBox
  • RecordsSummary
  • RefreshForm
  • SampleForm
  • SelectableLabel
  • SpeedForm
  • TestImageBrowser
  • UrlForm

Traits

  • QListItemManager

Exceptions

  • QCrossScriptingException

Functions

  • __QForm_EvaluateTemplate_ObHandler
  • DataGridEvalHandleError
  • Overview
  • Package
  • Class

Class CalculatorWidget

Implements a JQuery UI Dialog

It extends the QDialogBase class. When writing your code, use this class instead of QDialogBase. This class is intended to be modified by the developer to add functions and alter the already present functions.

QBaseClass
Extended by QHtmlAttributeManagerBase
Extended by QHtmlAttributeManager
Extended by QControlBase
Extended by QControl
Extended by QBlockControl
Extended by QPanel
Extended by QDialogGen
Extended by QDialogBase
Extended by QDialog
Extended by CalculatorWidget
Package: Controls
Located at assets/php/examples/advanced_ajax/CalculatorWidget.class.php
Methods summary
public
# __construct( QControl|QForm|QControlBase $strCloseCallback, string $objParentObject, $strControlId = null )

Creates a QControlBase object This constructor will generally not be used to create a QControlBase object. Instead it is used by the classes which extend the class. Only the parent object parameter is required. If the option strControlId parameter is not used, QCubed will generate the id.

Creates a QControlBase object This constructor will generally not be used to create a QControlBase object. Instead it is used by the classes which extend the class. Only the parent object parameter is required. If the option strControlId parameter is not used, QCubed will generate the id.

Parameters

$strCloseCallback
$objParentObject
$objParentObject

$strControlId optional id of this Control. In html, this will be set as the value of the id attribute. The id can only contain alphanumeric characters. If this parameter is not passed, QCubed will generate the id.

$strControlId

Throws

Exception|QCallerException

Overrides

QDialogBase::__construct()
public
# pxyNumber_Click( $strFormId, $strControlId, $strParameter )
public
# btnPoint_Click( )
public
# pxyOperation_Click( $strFormId, $strControlId, $strParameter )
public
# btnEqual_Click( )
public
# btnClear_Click( )
public
# btnCancel_Click( )
public
# btnUpdate_Click( )
public
# Open( )

Opens the dialog.

Opens the dialog.

  • This method does not accept any arguments.

Overrides

QDialogGen::Open()
public
# ShowDialogBox( )

Show the dialog.

Show the dialog.

Overrides

QDialogBase::ShowDialogBox()
public mixed
# __get( string $strName )

PHP magic method

PHP magic method

Parameters

$strName

Returns

mixed

Throws

Exception|QCallerException

Overrides

QDialogBase::__get()
public mixed
# __set( string $strName, string $mixValue )

PHP magic method

PHP magic method

Parameters

$strName
$mixValue

Returns

mixed

Throws

Exception|QCallerException|QInvalidCastException

Overrides

QDialogBase::__set()
Methods inherited from QDialogBase
AddButton(), AddCloseButton(), Alert(), GetEndScript(), HideDialogBox(), MakeJqOptions(), RemoveAllButtons(), RemoveButton(), SetButtonStyle(), ShowHideButton(), StylingJs(), ValidateControlAndChildren(), alert_Close(), getJqControlId()
Methods inherited from QDialogGen
Close(), Destroy(), GetJqSetupFunction(), GetModelConnectorParams(), Instance(), IsOpen(), MoveToTop(), Option(), Option1(), Option2(), Option3()
Methods inherited from QBlockControl
AddControlToMove(), AddDropZone(), GetControlHtml(), GetInnerHtml(), ParsePostData(), RemoveAllControlsToMove(), RemoveAllDropZones(), RemoveControlToMove(), RemoveDropZone(), Validate()
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(), GetForm(), GetJavaScriptForEvent(), GetJqControlId(), GetNonWrappedHtml(), GetState(), GetStyleAttributes(), GetTemplatePath(), GetWrapperAttributes(), GetWrapperStyleAttributes(), GetWrapperStyler(), IsDescendantOf(), IsModified(), MakeCurrent(), MarkAsModified(), MarkAsRendered(), MarkAsWrapperModified(), ProcessActionParameters(), PutState(), Refresh(), RemoveAllActions(), RemoveChildControl(), RemoveChildControls(), RemoveCustomAttribute(), RemoveCustomStyle(), RemoveWrapperCssClass(), Render(), RenderActionScripts(), RenderAjax(), RenderAttributeScripts(), RenderChildren(), RenderComment(), RenderCssStyles(), RenderExtensionRenderer(), RenderHelper(), RenderHtmlAttributes(), RenderOutput(), RenderWithError(), RenderWithName(), RenderWrappedOutput(), ResetFlags(), ResetOnPageStatus(), SetCustomAttribute(), SetCustomStyle(), SetFocus(), SetForm(), SetParentControl(), Sleep(), SleepHelper(), 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()
Methods inherited from QBaseClass
OverrideAttributes(), __call()
Constants inherited from QDialogBase
MessageDialogId, StateError, StateHighlight, StateNone
Constants inherited from QControlBase
CommentEnd, CommentStart
Properties summary
public $pnlValueDisplay
#
public $pxyNumberControl
#
public $pxyOperationControl
#
public $btnEqual
#
public $btnPoint
#
public $btnClear
#
public $btnUpdate
#
public $btnCancel
#
protected integer $intWidth
# 240
protected $strCloseCallback
#
protected $fltValue
#
protected boolean $blnMatteClickable
# false
protected string $strTemplate

Path to the HTML template (.tpl.php) file (applicable in case a template is being used for Render)

Path to the HTML template (.tpl.php) file (applicable in case a template is being used for Render)

# 'CalculatorWidget.tpl.php'
protected string $strCssClass

The INITIAL class for the object. Only subclasses should set this before calling the parent constructor.

The INITIAL class for the object. Only subclasses should set this before calling the parent constructor.

# 'calculator_widget'
protected $fltInternalValue
#
protected $strCurrentOperation
#
protected $blnNextClears
#
Properties inherited from QDialogBase
$blnAutoOpen, $blnAutoRender, $blnHasCloseButton, $blnIsOpen, $blnUseWrapper, $blnValidationArray, $strClickedButtonId, $strDialogState
Properties inherited from QDialogGen
$blnCloseOnEscape, $blnDraggable, $blnModal, $blnResizable, $intMaxHeight, $intMaxWidth, $intMinHeight, $intMinWidth, $mixAppendTo, $mixButtons, $mixHeight, $mixHide, $mixPosition, $mixShow, $strCloseText, $strDialogClass, $strJavaScripts, $strStyleSheets, $strTitle
Properties inherited from QPanel
$blnHtmlEntities, $blnIsBlockElement, $strDefaultDisplayStyle, $strTagName
Properties inherited from QBlockControl
$blnAutoRenderChildren, $blnDropTarget, $objDropsControlsArray, $objDropsGroupingsArray, $objIsDropZoneFor, $objMovesControlsArray, $strFormat, $strText
Properties inherited from QControlBase
$blnActionsMustTerminate, $blnDisplay, $blnMinimize, $blnModified, $blnOnPage, $blnRendered, $blnRendering, $blnRequired, $blnSaveState, $blnScriptsOnly, $blnVisible, $blnWrapLabel, $blnWrapperModified, $mixActionParameter, $mixCausesValidation, $objActionArray, $objChildControlArray, $objDraggable, $objDroppable, $objForm, $objLinkedNode, $objParentControl, $objResizable, $objWatcher, $objWrapperStyler, $strAttributeScripts, $strControlId, $strCustomAttributeArray, $strCustomStyleArray, $strFormAttributes, $strHtmlAfter, $strHtmlBefore, $strInstructions, $strName, $strPreferredRenderMethod, $strRenderMethod, $strValidationError, $strWarning
Properties inherited from QHtmlAttributeManagerBase
$attributes, $styles
Magic properties inherited from QDialogBase
$ClickedButton, $DialogState, $HasCloseButton
Magic properties inherited from QDialogGen
$AppendTo, $AutoOpen, $Buttons, $CloseOnEscape, $CloseText, $DialogClass, $Draggable, $Height, $Hide, $MaxHeight, $MaxWidth, $MinHeight, $MinWidth, $Modal, $Position, $Resizable, $Show, $Title, $Width
Magic properties inherited from QBlockControl
$AutoRenderChildren, $DropTarget, $Format, $HorizontalAlign, $HtmlEntities, $ResizeHandleDirection, $ResizeHandleMaximum, $ResizeHandleMinimum, $TagName, $Template, $Text, $VerticalAlign
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, $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, $Left, $Margin, $NoWrap, $Opacity, $OrderedListType, $Overflow, $Padding, $ReadOnly, $TabIndex, $ToolTip, $Top, $UnorderedListStyle
API documentation generated by ApiGen