class ModelHelper
view source
extends EventListener
Helper to ease AUI tree access for customized widgets, Manages client side life cycle representation of the node.
new ModelHelper(widget : WidgetBase)
Parameters
widget | WidgetBase | the widget to handle |
addAuiUpdateListener(listener : function)
: (function)
Registers a listener which will be called when any DVM answer is received. You can update your widget in the provided callback This listening method is general to all started applications. If your UI updates are heavy, prefer more fine grained update notification mechanisms
Parameters
listener | function | the function to call when a new application is started |
Returns
emit(type : string, arguments… : any)
[inherits from EventListener]
getAnchorNode()
: (NodeBase)
Get Anchor Node of the widget
Returns
getApplication()
: (VMApplication)
Get the widget application
Returns
getCurrentApplication()
: (VMApplication)
Get the current application
Returns
getDecorationNode()
: (NodeBase)
Applies only to entry fields (FormField, Matrix or TableColumn) A decoration node is the node holding visual information (Edit, CheckBox, ComboBox, etc...)
Returns
getFieldNode()
: (NodeBase)
Applies only to entry fields (FormField, Matrix or TableColumn)
Returns
getUserInterfaceNode()
: (NodeBase)
Get the UserInterface Node
Returns
isDestroyed()
: (boolean)
[inherits from EventListener]
Returns if the node is destroyed