class WidgetBase
view source
extends EventListener
Base class for widgets.
new WidgetBase(opts : Object)
Parameters
opts | Object | instantiation options |
opts.appHash | number | internal app hash |
opts.appWidget | ApplicationWidget | early ApplicationWidget link |
opts.auiTag | number | internal aui tag id |
opts.inTable | boolean | internal is in table |
opts.inMatrix | boolean | internal is in matrix |
opts.inFirstTableRow | boolean | internal |
opts.inScrollGrid | boolean | internal is in a scroll grid |
opts.ignoreLayout | boolean | ignore layout char measurer |
detach()
Detach the widget from the dom
emit(type : string, arguments… : any)
[inherits from EventListener]
getApplicationIdentifier()
: (string)
Get the unique identifier of the application
Returns
getApplicationWidget()
: (ApplicationWidget)
Get Application Widget related to the widget
Returns
getBuildParameters()
: (Object)
Returns build parameters
Returns
getClassName()
: (string)
Get the main class name of the widget
Returns
getDialogType()
: (string)
return widget current dialog type
Returns
getElement()
: (HTMLElement)
Get the root element of the widget
Returns
getEnd()
: (string)
Get end (for reversed mode)
Returns
getFormWidget()
: (FormWidget)
Get the Form Widget related to the widget
Returns
getLayoutEngine()
: (LayoutEngineBase)
Get the widget's layout engine
Returns
getLayoutInformation()
: (LayoutInformation)
Get the widget's layout information
Returns
getName()
: (string)
Get the name of the widget class
Returns
getParentWidget()
: (WidgetGroupBase)
Get the parent widget
Returns
getStart()
: (string)
Get start (for reversed mode)
Returns
getTableWidgetBase()
: (TableWidgetBase)
Get the table Widget base class related to the widget
Returns
getTitle()
: (string)
Get the title of the widget
Returns
getUniqueIdentifier()
: (string)
Get the unique identifier of the widget
Returns
getUserInterfaceWidget()
: (UserInterfaceWidget)
Get the UI widget related to the widget
Returns
getWindowWidget()
: (WindowWidget)
Get the Window Widget related to the widget
Returns
hasFocus()
: (boolean)
Check if widget node has focus (class gbc_Focus)
Returns
hasVMFocus()
: (boolean)
Check if widget node has VM focus
Returns
ignoreLayout()
: (boolean)
Does the widget ignore layouting
Returns
isChildOf(parent : WidgetBase)
: (boolean)
Check if this widget is a child of a given one
Parameters
parent | WidgetBase | the reference parent widget |
Returns
isDestroyed()
: (boolean)
[inherits from EventListener]
Returns if the node is destroyed
Returns
isEnabled()
: (boolean)
Check if widget is enabled
Returns
isFocusable()
: (boolean)
Returns if the widget is focusable
Returns
isHidden()
: (boolean)
Check if the widget is hidden
Returns
isInMatrix()
: (boolean)
Check if the widget is in a matrix
Returns
isInTable()
: (boolean)
Check if the widget is in a table
Returns
isNoBorder()
: (boolean)
Check if the widget is displayed without border
Returns
isReversed()
: (boolean)
Check if arabic mode is enabled
Returns
isVisible()
: (boolean)
Check if the widget is visible
Returns
loseFocus()
Called before setFocus to notify previous focused widget
loseVMFocus()
Called before setting VM focus to notify previous VM focused widget
replaceWith(widget : WidgetBase)
setParentWidget(widget : WidgetGroupBase, options : Object)
Defines the parent widget
Parameters
widget | WidgetGroupBase | the widget to use as parent |
options | Object | possible options |
options.noLayoutInvalidation | boolean | won't affect parent layout |
translate()
Translate the widget