qnx.fuse.ui.core.UIComponent

UIComponent

Properties | Methods | Events


Packageqnx.fuse.ui.core
Classpublic class UIComponent
InheritanceUIComponent Inheritance flash.display.MovieClip
Implements ILayoutElement, IInvalidating
Subclasses ActionBar, ApplicationMenu, CardBase, Container, ExpandableControl, Image, List, MediaControl, SegmentedControl, SkinnableComponent, SliderBase, TextBase, TilingBackground, ToggleSwitch, UISkin, VideoDisplay

The UIComponent class is the base class for all components.

Class information:
BlackBerry 10 Version:   10.0.0
Found in:  qnxui.swc



Public Properties

 PropertyDefined By
  contextActions : Vector.<ActionSet>
Gets or Sets a Vector of ActionSet objects.
UIComponent
  contextMultiSelectText : String
Gets or Sets a String to be displayed when showing the Multi Select Context Menu.
UIComponent
  currentTheme : String
[read-only] Returns the current theme this component is styled with.
UIComponent
  explicitHeight : Number
[read-only] Returns the explicit height (actual height, in pixels) of the UI component.
UIComponent
  explicitWidth : Number
[read-only] Returns the explicit width (actual width, in pixels) of the UI component.
UIComponent
  id : String
The id is a name for the component that can be used in CSS using the # selector.
UIComponent
  includeInLayout : Boolean
Specifies whether or not the component should be included in its parent container's layout.
UIComponent
  layoutData : Object
Gets or sets the layoutData.
UIComponent
  locale : String
Gets or sets the current locale of the component.
UIComponent
  minHeight : Number
Gets or sets the minimum preferred height of the control.
UIComponent
  minWidth : Number
Gets or sets the minimum preferred width of the control.
UIComponent
  styleChildren : Boolean
Allows you to style the children of this component with CSS.
UIComponent

Protected Properties

 PropertyDefined By
  accessibilityImplimentationClass : Class
UIComponent
  cssID : String
[read-only] Returns the CSS ID of the component.
UIComponent
  explicitLocale : Boolean
Set to true when the locale property has been set externally.
UIComponent
  internalID : String
The Component's Id used for styling.
UIComponent
  longPressEnabled : Boolean
Specifies whether the UIComponent can detect a long press.
UIComponent

Public Methods

 MethodDefined By
  
Creates a new UIComponent instance.
UIComponent
  
Cancels a long press from occuring on the component.
UIComponent
  
childChanged(resizedChild:DisplayObject = null):Boolean
Notifies the UIComponent that one or more of its children has changed in a manner that may affect this object's layout.
UIComponent
  
destroy():void
Call this method when you want to have your object collected by the garbage collector.
UIComponent
  
Returns the CSS selector for the object, composing it from its position in the display hierarchy and an optional ID selector.
UIComponent
  
Returns the size options for the given control.
UIComponent
  
Calling this method results in a call to the components validateDisplayList() method before the display list is rendered.
UIComponent
  
Calling this method results in a call to the components validateProperties() method before the display list is rendered.
UIComponent
  
measure(availableWidth:Number, availableHeight:Number):LayoutMeasurement
This method calls doMeasure() in order to calculate the preferred size of the control.
UIComponent
  
setActualSize(w:Number, h:Number):void
Sets the width and height of the object without setting the explicitWidth and explicitHeight.
UIComponent
  
setLayoutBounds(bounds:Rectangle):void
Sets the receiver's size and location to the rectangular area specified by the arguments.
UIComponent
  
setPosition(x:Number, y:Number):void
Sets the x and y position of the component.
UIComponent
  
updateDefaultLocale(updateChildren:Boolean = true):void
Updates the locale property to be the same as the locale of the device.
UIComponent
  
Lets a component that contains text know that it should update its font formats as the font settings have changed.
UIComponent
  
Validates the display list of the component by calling the updateDisplayList().
UIComponent
  
Validates the component immediately by calling validateProperties(), validateSizes(), and validateDisplayList() if necessary.
UIComponent
  
Validates the properties of the component by calling the commitProperties() method.
UIComponent

Protected Methods

 MethodDefined By
  
allowShowContextMenu(target:IEventDispatcher):Boolean
When the user presses on the component this method is called with the object that dispatched the event.
UIComponent
  
Process properties of the component.
UIComponent
  
Process the state of the component.
UIComponent
  
Style the component after the style has changed.
UIComponent
  
doMeasure(availableWidth:Number, availableHeight:Number):LayoutMeasurement
Performs a measurement on the control, and returns a LayoutMeasurement instance containing the available width and height within the layout.
UIComponent
  
excemptFromCSSStyling(target:*, property:String = null):void
Exempts a property on an object from being styled by CSS.
UIComponent
  
flushCache():void
Invoked as part of parentLayoutChanged.
UIComponent
  
getStyleApplier():Function
A style applier is a method that gets called every time a property from the stylesheet should be applied to the component.
UIComponent
  
onAdded():void
Called when the instance is added to the stage.
UIComponent
  
Is called when a user is no longer long pressing on the component.
UIComponent
  
Is called when a user long presses on the component.
UIComponent
  
onRemoved():void
Called when the instance is removed from the stage.
UIComponent
  
Invalidates the parent's size and display list if includeInLayout property is set to true.
UIComponent
  
Calling this function will refresh the ContextMenu with whatever actions were set by contextActions.
UIComponent
  
Shows the context menu if there are contextActions associated with the control.
UIComponent
  
styleState():void
Style the component after state has changed.
UIComponent
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Sets the size and position of the children of the component.
UIComponent

Events

 Event Summary Defined By
  Dispatched when an action in the Context Menu is selected.UIComponent
  Dispatched when the Context Menu has closed to the DISMISSED state.UIComponent
  Dispatched when the ContextMenu is closing to the DISMISSED state.UIComponent
  Dispatched when the Context Menu has opened to the PEEK or EXPANDED state.UIComponent
  Dispatched when the ContextMenu is opening from the DISMISSED state.UIComponent
  Dispatched when the CrossCut multiselect has been canceled.UIComponent

Property Detail

accessibilityImplimentationClass


protected var accessibilityImplimentationClass:Class

contextActions


contextActions:Vector.<ActionSet>

Gets or Sets a Vector of ActionSet objects. ActionSet objects have a Vector of Action objects and a title and subtitle. These properties will be used to populate the Context menu that appears on a long press. Setting this to null will prevent the Context Menu from being shown.


Implementation

public function get contextActions():Vector.<ActionSet>
public function set contextActions(value:Vector.<ActionSet>):void

See also

ActionSet

contextMultiSelectText


contextMultiSelectText:String

Gets or Sets a String to be displayed when showing the Multi Select Context Menu.


Implementation

public function get contextMultiSelectText():String
public function set contextMultiSelectText(value:String):void

See also

MultiSelectAction

cssID


cssID:String  [read-only]

Returns the CSS ID of the component. The CSS ID is used for identifying the type of component in CSS.

The default value is null.


Implementation

protected function get cssID():String

currentTheme


currentTheme:String  [read-only]

Returns the current theme this component is styled with.


Implementation

public function get currentTheme():String

explicitHeight


explicitHeight:Number  [read-only]

Returns the explicit height (actual height, in pixels) of the UI component.


Implementation

public function get explicitHeight():Number

explicitLocale


protected var explicitLocale:Boolean

Set to true when the locale property has been set externally.

explicitWidth


explicitWidth:Number  [read-only]

Returns the explicit width (actual width, in pixels) of the UI component.


Implementation

public function get explicitWidth():Number

id


id:String

The id is a name for the component that can be used in CSS using the # selector. By setting the ID on the component, it will take on the styles associated with that id in the CSS, as well as any other rules that apply to the component depending on its position in the display hierarchy. Duplicate rules in the style hierarchy will always favour ones defined with an ID.

NOTE: New styles will be applied after validation, so they may not appear until a frame has passed. If you need the styles to be applied immediately, use validateNow().


Implementation

public function get id():String
public function set id(value:String):void

Example

In the following example we define some custom CSS for our Label, and then a set of rules for a component with the ID "customLabel". Once we set the Label's id to be "customLabel", it takes on the new styles.

// Injects our custom CSS for this example.
var css : String = "Label { text-color:#0000ff; text-size:16; } #customLabel { text-color:#ff0000; }";
ThemeGlobals.injectCSS(css);
var label : Label = new Label();
label.text = "Hello World";
trace(label.format.color.toString(16)); // #0000ff (blue) 
label.id = "customLabel";
// normally styles would be applied during validation, which happens in the next frame
// but in this example we'll validate immediately so we can see the results in code.
label.validateNow();
trace(label.format.color.toString(16)); // #ff0000 (red)
trace(label.format.size); // Size is still 16 since Label rules still apply
         

includeInLayout


includeInLayout:Boolean

Specifies whether or not the component should be included in its parent container's layout.

If true, the component will be sized and positioned based on the container's layout rules. If set to false, the component's size and position are not considered in the layout of the parent container.

After changing the value of this attribute, the container will receive ILayout.layoutChanged(null). The null argument indicates that this is not a change in a control's measure() or getSizeOptions() method.


Implementation

public function get includeInLayout():Boolean
public function set includeInLayout(value:Boolean):void

internalID


protected var internalID:String

The Component's Id used for styling. Ex this.id = "MyComponent" == #MyComponent { startWidth:100 } When setting the id through the UIComponent.id setter, a styling is triggered immediately. Use this protected setter if you want to set the ID in your component's init() method, and then let the super.init() method call handle the styling of the component. This saves a redundant styling pass.

layoutData


layoutData:Object

Gets or sets the layoutData.

The meaning and type of this property is determined by the layout that contains the layout element, but it is generally used to configure all per-control settings in the layout.

The following attributes are common to all layout data:

  • Once a layoutData object is attached to an ILayoutElement, the object instance must never be changed. If callers want to modify the layout data, they must clone the old layout data object, modify it, then attach the new copy of it to the layout element. Layouts are allowed to compare the old layout data with the new one to determine what changed. If the original layout data is ever modified, the layout may incorrectly determine that nothing changed and ignore the event.
  • If this property changes, the layout will be notified via a call to ILayout.layoutChanged(null).


Implementation

public function get layoutData():Object
public function set layoutData(value:Object):void

locale


locale:String

Gets or sets the current locale of the component.

Setting this proprety may affect the way the component is rendered. Text components use this property to determine if they should render text left-to-right or right-to-left. Containers and some components will use this property to determine if the their layout should be mirrored or not.

By default the locale is set to "en_US". Setting the ThemeGlobals.useDeviceLocale property to true will cause the locale property to be set to the device locale by default. If the locale property is explicitly set externally using the setter, the property will always be the value set.

The default value is en_US or the current locale of the device..


Implementation

public function get locale():String
public function set locale(value:String):void

See also

updateDefaultLocale()
qnx.theme.ThemeGlobals.useDeviceLocale

longPressEnabled


longPressEnabled:Boolean

Specifies whether the UIComponent can detect a long press. The default value is false, which means that by default a UIComponent instance cannot detect a long press. If the longPressEnabled property is set to true, the instance will detect a long press if the mouse is down on the component for longer than 500 milliseconds. The mouseEnabled property of the UIComponent instance must also be set to true for the object to detect a long press. This property will automatically be set to true if contextActions is set to something other than null. If contextActions is set to null however, this property will not change to false.


Implementation

protected function get longPressEnabled():Boolean
protected function set longPressEnabled(value:Boolean):void

minHeight


minHeight:Number

Gets or sets the minimum preferred height of the control. Can be used to ensure the control remains a usable size even when filled with very small controls. This only affects the control's preferred size and may be overridden by the parent layout.

The default value is 0.


Implementation

public function get minHeight():Number
public function set minHeight(value:Number):void

minWidth


minWidth:Number

Gets or sets the minimum preferred width of the control. Can be used to ensure the control remains a usable size even when filled with very small controls. This only affects the control's preferred size and may be overridden by the parent layout.

The default value is 0.


Implementation

public function get minWidth():Number
public function set minWidth(value:Number):void

styleChildren


styleChildren:Boolean

Allows you to style the children of this component with CSS. For instance, if you wanted to style a Label inside of a Container, you'd write the CSS rule as: Container Label { text-color:#ff0000; } And then on the Container instance, set styleChildren to true.

The default value is false styleChildren is set to false to increase performance. Where possible, use CSS IDs to identify your components..


Implementation

public function get styleChildren():Boolean
public function set styleChildren(value:Boolean):void

Constructor Detail

UIComponent()


public function UIComponent()

Creates a new UIComponent instance.

Method Detail

allowShowContextMenu()


protected function allowShowContextMenu(target:IEventDispatcher):Boolean

When the user presses on the component this method is called with the object that dispatched the event. Clients can override this method to stop the opening of the context menu if the object that dispatched the event is invalid.

Note this method is called as soon as a long press is started, not just before a context menu opens.

Parameters

target:IEventDispatcher — The dispatcher of a MOUSE_DOWN event, which can be used to determine if a context menu should open.

Returns

Boolean — A Boolean indicating whether or not the context menu should open.

cancelLongPress()


public final function cancelLongPress():void

Cancels a long press from occuring on the component.

childChanged()


public function childChanged(resizedChild:DisplayObject = null):Boolean

Notifies the UIComponent that one or more of its children has changed in a manner that may affect this object's layout. Subclasses may override this method to clear any cached information about their children or to opt out of changing their parent.

Parameters

resizedChild:DisplayObject (default = null) — If this is non-null, it indicates specifically that the getSizeOptions() or measure() method for the given child has changed. If this is null, it indicates any other kind of change that may affect this layout, including children being added, removed, reordered, a change in layout data or a change in the layout itself.

Returns

Boolean — true if this change may have an effect on the receiver's getSizeOptions or measure method. false if there is no chance of this change having any effect on the receiver's getSizeOptions or measure method.

commitProperties()


protected function commitProperties():void

Process properties of the component. You may want to override this in your own component subclasses.

Do not call this method yourself. It will be called by the validationProperties() method when required. It is called before the measure() method is called allowing you to adjust any properties that may be impact layout.

commitState()


protected function commitState():void

Process the state of the component. You may want to override this method in your own components.

The default implementation of this method sets the state of the skin to the current state of the component. This method is called after the styleState() method is called and before the measure() method is called.

commitStyle()


protected function commitStyle():void

Style the component after the style has changed. You may want to override this method in your components.

The default of this implementation styles the skin based on the style information supplied for the component. This method is called after the commitProperties() method is called and before the styleState() method is called.

destroy()


public function destroy():void

Call this method when you want to have your object collected by the garbage collector.

NOTE: This method does not remove the object from memory. Instead, it enables your instance to clean up after itself internally so that it can be garbage-collected.

doMeasure()


protected function doMeasure(availableWidth:Number, availableHeight:Number):LayoutMeasurement

Performs a measurement on the control, and returns a LayoutMeasurement instance containing the available width and height within the layout.

Override this method to provide custom measurement for your own controls.

Parameters

availableWidth:Number — The amount of space (width) available within the layout.
availableHeight:Number — The amount of space (height) available within the layout.

Returns

LayoutMeasurement — LayoutMeasurement

excemptFromCSSStyling()


protected function excemptFromCSSStyling(target:*, property:String = null):void

Exempts a property on an object from being styled by CSS. If no property is provided, then all properties on the supplied object are excempted from CSS styling. This is useful if you want to extend the CSS styling system to style your own types of objects, but also want users to be able to interact with these objects through a public API, and for their changes to take precidence over the values in CSS.

Parameters

target:* — The object which you dont want to have styled by CSS. If you dont supply a property name as a second parameter, all properties on this object will be exempt from styling.
property:String (default = null) — Ensures that this property is not styled on the taget object.

flushCache()


protected function flushCache():void

Invoked as part of parentLayoutChanged. If the subclass is caching the result of its doMeasure() method, it should override this method to clear the cache.

getCSSSelector()


public function getCSSSelector():String

Returns the CSS selector for the object, composing it from its position in the display hierarchy and an optional ID selector.

Returns

String — Returns the fully qualified CSS selector for the component.

getSizeOptions()


public function getSizeOptions():int

Returns the size options for the given control. The size options determine the behaviour of the control during a resize operation.

Returns

int — A integer that defines a given size option.

getStyleApplier()


protected function getStyleApplier():Function

A style applier is a method that gets called every time a property from the stylesheet should be applied to the component. The function returned from this method should have the signature function(name:String, val::void. You can use StyleUtils.createStyleApplier(...) to aggregate style applier methods in to one, that can then be returned from this method. This lets you create modular applier methods that can be flexiblity applied depending on the situation.

Returns

Function — A Function with a function(name:String, val::void signature.

invalidateDisplayList()


public function invalidateDisplayList():void

Calling this method results in a call to the components validateDisplayList() method before the display list is rendered. For UIComponent classes, this will result in a call to updateDisplayList().

invalidateProperties()


public function invalidateProperties():void

Calling this method results in a call to the components validateProperties() method before the display list is rendered. For UIComponent classes, this will result in a call to commitProperties().

measure()


public final function measure(availableWidth:Number, availableHeight:Number):LayoutMeasurement

This method calls doMeasure() in order to calculate the preferred size of the control.

Override the doMeasure() method to add custom measurement to a control.

Parameters

availableWidth:Number — The available width.
availableHeight:Number — The available height.

Returns

LayoutMeasurement — LayoutMeasurement

Throws

ArgumentError — Is thrown if availableWidth or available height is NaN.
ArgumentError — Is thrown if the preferred size of control as a result of a measurement is NaN.

See also

UIComponent.doMeasure()

onAdded()


protected function onAdded():void

Called when the instance is added to the stage.

This method can be overwritten in your subclasses. This method is called when the Event.ADDED_TO_STAGE event is dispatched.

onCancelLongPress()


protected function onCancelLongPress():void

Is called when a user is no longer long pressing on the component. Component developers can override this method in order to add additional functionality before the context menu is hidden.

onLongPress()


protected function onLongPress():void

Is called when a user long presses on the component. Component developers can override this method in order to add additional functionality before the context menu is shown.

onRemoved()


protected function onRemoved():void

Called when the instance is removed from the stage.

This method can be overwritten in your subclasses. This method is called when the Event.REMOVED_FROM_STAGE event is dispatched.

parentLayoutChanged()


protected final function parentLayoutChanged():void

Invalidates the parent's size and display list if includeInLayout property is set to true.

refreshContextActions()


protected function refreshContextActions():void

Calling this function will refresh the ContextMenu with whatever actions were set by contextActions. Use this function if you wish the change what is in the context menu while it is being shown.

setActualSize()


public function setActualSize(w:Number, h:Number):void

Sets the width and height of the object without setting the explicitWidth and explicitHeight. This allows the component to return to its previous size in a future layout call.

Parameters

w:Number — The new width of the control.
h:Number — The new height of the control.

setLayoutBounds()


public function setLayoutBounds(bounds:Rectangle):void

Sets the receiver's size and location to the rectangular area specified by the arguments.

Parameters

bounds:Rectangle — The receivers size and location.

setPosition()


public function setPosition(x:Number, y:Number):void

Sets the x and y position of the component.

Parameters

x:Number — The new x position to be set.
y:Number — The new y position to be set.

showContextMenu()


protected final function showContextMenu():void

Shows the context menu if there are contextActions associated with the control.

styleState()


protected function styleState():void

Style the component after state has changed. You may want to override this method in your components.

The default of this implementation styles the skin based on the style information supplied for the state. This method is called after the commitStyle() method is called and before the commitState() method is called.

updateDefaultLocale()


public function updateDefaultLocale(updateChildren:Boolean = true):void

Updates the locale property to be the same as the locale of the device.

By default when a component is created, its locale property is set "en_US". This can cause issues if the application is localized, such as not causing the correct fonts to be used. Setting ThemeGlobals.useDeviceLocale to true, components will set their locale property to the locale of the device. If the locale of the device changes during the lifetime of the application, application developers will want to call this method to update the locale of the component.

If the updateChildren parameter is set to true, an attempt will be made to call the updateDefaultLocale on all of it's children. For performance reasons, certain components will override this method to prevent calling it on all of it's children, and call only relevant children.

If the locale property was explicitly set, the locale will not be changed as a result of calling this method.

To listen for device locale changes, listen for the Event.CHANGE event on the LocaleManager class.

Parameters

updateChildren:Boolean (default = true) — When true, an attempt is made to call updateDefaultLocale on all of its children.

See also

qnx.locale.LocaleManager
locale
qnx.theme.ThemeGlobals..useDeviceLocale

updateDisplayList()


protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Sets the size and position of the children of the component. Component developers will want to subclass this method to adjust its children correctly.

If the component needs to do any drawing it should be done in this method as well.

This method should not be called directly as it is called by framework when its invalidateDisplayList() method is called.

Parameters

unscaledWidth:Number — The unscaled width of the component. Any drawing, sizing and positioning should be based on this value and not width.
unscaledHeight:Number — The unscaled height of the component. Any drawing, sizing, and positioning should be based on this value and not height.

updateFontSettings()


public function updateFontSettings():void

Lets a component that contains text know that it should update its font formats as the font settings have changed. An attempt will be made to call this method on all of its children. It is only necessary to call this method after the application has received a Event.CHANGE event from the FontSettings class.

See also

qnx.system.FontSettings

validateDisplayList()


public function validateDisplayList():void

Validates the display list of the component by calling the updateDisplayList(). This allows you to make any adjustments to the components children's size and layout. Do not call this method directly as it is called by the framework for you. Also, do not subclass this method. Instead you should subclass the updateDisplayList() method.

See also

updateDisplayList()

validateNow()


public function validateNow():void

Validates the component immediately by calling validateProperties(), validateSizes(), and validateDisplayList() if necessary.

validateProperties()


public function validateProperties():void

Validates the properties of the component by calling the commitProperties() method. Do not call this method directly as it is called by the framework for you. Also, do not subclass this method. Instead you should subclass the commitProperties() method.

See also

commitProperties()

Event Detail

actionSelected


Event Object Type: qnx.fuse.ui.events.ActionEvent
ActionEvent.type property = qnx.fuse.ui.events.ActionEvent.ACTION_SELECTED

Dispatched when an action in the Context Menu is selected.

Dispatched when an action is selected.

The ActionEvent.ACTION_SELECTED constant defines the value of the type property of the event object for an actionSelected event.

The properties of the event object have the following values:

PropertyValue
actionThe action that was selected.
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeActionEvent.ACTION_SELECTED

context_menu_closed


Event Object Type: qnx.fuse.ui.events.ContextMenuEvent
ContextMenuEvent.type property = qnx.fuse.ui.events.ContextMenuEvent.CLOSED

Dispatched when the Context Menu has closed to the DISMISSED state.

Dispatched when the context menu is finished animating to its closed state.

The ContextMenuEvent.CLOSED constant defines the value of the type property of the event object for an context_menu_closed event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.CLOSED

context_menu_closing


Event Object Type: qnx.fuse.ui.events.ContextMenuEvent
ContextMenuEvent.type property = qnx.fuse.ui.events.ContextMenuEvent.CLOSING

Dispatched when the ContextMenu is closing to the DISMISSED state. Can be canceled.

Dispatched when the context menu is starting to animate to its closed state.

The ContextMenuEvent.CLOSING constant defines the value of the type property of the event object for an context_menu_closing event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue; call the preventDefault() method to prevent the context menu from closing.
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.CLOSING

context_menu_opened


Event Object Type: qnx.fuse.ui.events.ContextMenuEvent
ContextMenuEvent.type property = qnx.fuse.ui.events.ContextMenuEvent.OPENED

Dispatched when the Context Menu has opened to the PEEK or EXPANDED state.

Dispatched when the context menu is finished animating to its opened state.

The ContextMenuEvent.OPENED constant defines the value of the type property of the event object for an context_menu_opened event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.CLOSED

context_menu_opening


Event Object Type: qnx.fuse.ui.events.ContextMenuEvent
ContextMenuEvent.type property = qnx.fuse.ui.events.ContextMenuEvent.OPENING

Dispatched when the ContextMenu is opening from the DISMISSED state. Can be canceled.

Dispatched when the context menu is starting to animate to its opened state.

The ContextMenuEvent.OPENING constant defines the value of the type property of the event object for an context_menu_opening event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue; call the preventDefault() method to prevent the context menu from opening.
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.OPENING

multi_select_cancel


Event Object Type: qnx.fuse.ui.events.ContextMenuEvent
ContextMenuEvent.type property = qnx.ui.events.ContextMenuEvent.MULTISELECTCANCEL

Dispatched when the CrossCut multiselect has been canceled.





comments powered by Disqus