Base class for Kanzi nodes. More...
Classes | |
| interface | MessageSubscriptionFunction |
| Defines the message handler invoked when a node receives a message it listens to. More... | |
| class | MessageSubscriptionToken |
| Message subscription token that identifies a message subscription. More... | |
Public Member Functions | |
| ObjectRef< TResourceType > | acquireResource (ResourceID resourceId) throws ObjectNotFoundException |
| Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary. | |
| ResourceManager.AcquireTask | acquireResourcesAsync (ResourceID resourceId, ResourceManager.AcquireTask.Callback callback) |
| Posts an asynchronous task to acquire a resource. | |
| boolean | addAbstractChild (Node child) |
| Adds a node as child of this node. | |
| MessageSubscriptionToken | addMessageFilter (MessageType< MessageArgumentsType > messageType, MessageSubscriptionFunction< MessageArgumentsType > messageHandlerFunction) |
| Adds a message filter where the filter is a function. | |
| MessageSubscriptionToken | addMessageHandler (MessageType< MessageArgumentsType > messageType, MessageSubscriptionFunction< MessageArgumentsType > messageHandlerFunction) |
| Adds a message handler where the handler is a function. | |
| MessageSubscriptionToken | addMessageHandler (MessageType< MessageArgumentsType > messageType, MessageSubscriptionFunction< MessageArgumentsType > messageHandlerFunction, Node messageSourceFilter) |
| Adds a message handler where the handler is a function. | |
| void | addNodeComponentWithOwner (NodeComponent component, KanziObject owner) |
| Transfers the ownership of a node component to an object node and sets the owner of the node component. | |
| MessageSubscriptionToken | addTunnelingMessageFilter (MessageType< MessageArgumentsType > messageType, MessageSubscriptionFunction< MessageArgumentsType > messageHandlerFunction) |
| Adds a message filter where the filter is a function. | |
| MessageSubscriptionToken | addTunnelingMessageHandler (MessageType< MessageArgumentsType > messageType, MessageSubscriptionFunction< MessageArgumentsType > messageHandlerFunction, Node messageSourceFilter) |
| Adds a message handler where the handler is a function and you explicitly define the accepted source. | |
| void | attachRecursive () |
| Attaches an object node and its children recursively. | |
| void | clearChangeFlag (PropertyTypeChangeFlag flag) |
| Clears a change flag. | |
| void | dispatchMessage (MessageType< MessageArgumentsType > messageType, MessageArgumentsType arguments) |
| Dispatches a message from this node with specified arguments. | |
| String | findResourceUrl (ResourceID resourceId) |
| Tries to find Resource URL for Resource ID from this node. | |
| Node | getAbstractChild (int index) |
| Returns node at given child index. | |
| int | getAbstractChildCount () |
| Returns number of child nodes. | |
| int | getAbstractChildIndex (Node node) |
| Returns index of given node in list of child nodes. | |
| float | getActualDepth () |
| Gets the value of #ActualDepthProperty. | |
| float | getActualHeight () |
| Gets the value of #ActualHeightProperty. | |
| float | getActualWidth () |
| Gets the value of #ActualWidthProperty. | |
| float | getDepth () |
| Gets the value of #DepthProperty. | |
| Vector2 | getDepthMargin () |
| Gets the value of #DepthMarginProperty. | |
| float | getHeight () |
| Gets the value of #HeightProperty. | |
| Vector2 | getHorizontalMargin () |
| Gets the value of #HorizontalMarginProperty. | |
| String | getLocale () |
| Gets the value of #LocaleProperty. | |
| String | getName () |
| Gets the value of #NameProperty. | |
| float | getOpacity () |
| Gets the value of #OpacityProperty. | |
| Node | getParent () |
| Gets parent of this node. | |
| String | getPath () |
| Gets the value of #PathProperty. | |
| Resource | getStateManager () |
| Gets the value of #StateManagerProperty. | |
| Resource | getStyle () |
| Gets the value of #StyleProperty. | |
| Vector2 | getVerticalMargin () |
| Gets the value of #VerticalMarginProperty. | |
| float | getWidth () |
| Gets the value of #WidthProperty. | |
| void | invalidateArrange () |
| Invalidates arrange for the node. | |
| void | invalidateDraw () |
| Invalidates draw flag for the node. | |
| void | invalidateFinalTransform () |
| Invalidates final transform for node. | |
| void | invalidateMeasure () |
| Invalidates measure for the node. | |
| void | invalidateRender () |
| Invalidates render for the node. | |
| boolean | isAnyChangeFlagSet (EnumSet< PropertyTypeChangeFlag > flags) |
| Checks if any of a set of change flags is set. | |
| boolean | isAnyChildChangeFlagSet (EnumSet< PropertyTypeChangeFlag > flags) |
| Checks if any of a set of change flags is set on a child. | |
| boolean | isChangeFlagSet (PropertyTypeChangeFlag flag) |
| Checks if a change flag is set. | |
| boolean | isChildChangeFlagSet (PropertyTypeChangeFlag flag) |
| Checks if a change flag is set on a child. | |
| boolean | isClipChildren () |
| Gets the value of #ClipChildrenProperty. | |
| boolean | isEnabled () |
| Gets the value of #EnabledProperty. | |
| boolean | isFocusable () |
| Gets the value of the #FocusableProperty. | |
| boolean | isFocused () |
| Sets whether a node is an active focus node and can receive keyboard messages. | |
| boolean | isHitTestable () |
| Gets the value of #HitTestableProperty. | |
| boolean | isHitTestableContainer () |
| Gets the value of #HitTestableContainerProperty. | |
| boolean | isHover () |
| Gets the value of #HoverProperty. | |
| boolean | isInvalidArrange () |
| Check if the node needs arrange. | |
| boolean | isInvalidDraw () |
| Tells if node draw flag is invalid. | |
| boolean | isInvalidFinalTransform () |
| Tells if final transform flag is invalid for node. | |
| boolean | isInvalidMeasure () |
| Check if the node needs measure. | |
| boolean | isInvalidRender () |
| Returns if node render flag is invalid. | |
| boolean | isVisible () |
| Gets the value of #VisibleProperty. | |
| Iterable< NodeComponent > | iterateNodeComponents () |
| Gets an Iterable object used to iterate the Node Components. | |
| T | lookupNode (String path) |
| Returns a node of specified type by looking it up with specified path or alias. | |
| NodeComponent | lookupNodeComponentByName (String name) |
| Look up a Node Component by Name. | |
| KanziObject | lookupObject (String path) |
| Returns a KanziObject by looking it up with specified path or alias. | |
| void | notifyResourceDictionaryModified () |
| Forces the re-evaluation of resource IDs in a node tree. | |
| boolean | removeAbstractChild (Node child) |
| Removes child node from this node. | |
| void | removeBinding (AbstractBindingRuntime bindingRuntime) |
| Removes a binding runtime added earlier. | |
| void | removeBindingsWithOwner (KanziObject owner) |
| Removes binding runtimes owned by a KanziObject. | |
| void | removeMessageHandler (MessageSubscriptionToken token) |
| Removes a message subscription. | |
| void | removeNodeComponentWithOwner (KanziObject owner) |
| Removes all node component bindings with the specified owner. | |
| void | setActualDepth (float value) |
| Sets the value of #ActualDepthProperty. | |
| void | setActualHeight (float value) |
| Sets the value of #ActualHeightProperty. | |
| void | setActualWidth (float value) |
| Sets the value of #ActualWidthProperty. | |
| void | setAutoHeight () |
| Sets node to automatically determine height. | |
| void | setAutoWidth () |
| Sets node to automatically determine width. | |
| AbstractBindingRuntime | setBinding (AbstractBinding binding) |
| Sets a binding. | |
| AbstractBindingRuntime | setBinding (AbstractBinding binding, PropertyType<?> propertyType) |
| Sets a binding. | |
| AbstractBindingRuntime | setBinding (AbstractBinding binding, PropertyType<?> propertyType, PropertyField propertyField) |
| Sets a binding. | |
| AbstractBindingRuntime | setBindingWithOwner (AbstractBinding binding, KanziObject owner, PropertyType<?> propertyType) |
| Sets a binding with owner. | |
| AbstractBindingRuntime | setBindingWithOwner (AbstractBinding binding, KanziObject owner, PropertyType<?> propertyType, PropertyField propertyField) |
| Sets a binding with owner. | |
| void | setChangeFlag (PropertyTypeChangeFlag flag) |
| Sets a change flag. | |
| void | setClipChildren (boolean value) |
| Sets the value of #ClipChildrenProperty. | |
| void | setDepth (float value) |
| Sets the value of #DepthProperty. | |
| void | setDepthMargin (Vector2 value) |
| Sets the value of #DepthMarginProperty. | |
| void | setEnabled (boolean value) |
| Sets the value of the #EnabledProperty. | |
| void | setFocusable (boolean value) |
| Sets the value of the #FocusableProperty. | |
| void | setFocused (boolean value) |
| Sets the value of the #FocusedProperty. | |
| void | setHeight (float value) |
| Sets the value of #HeightProperty. | |
| void | setHitTestable (boolean value) |
| Sets the value of #HitTestableProperty. | |
| void | setHitTestableContainer (boolean value) |
| Sets the value of #HitTestableContainerProperty. | |
| void | setHorizontalMargin (Vector2 value) |
| Sets the value of #HorizontalMarginProperty. | |
| void | setHover (boolean value) |
| Sets the value of #HoverProperty. | |
| void | setLocale (String value) |
| Sets the value of #LocaleProperty. | |
| AbstractBindingRuntime | setModifierBinding (AbstractBinding binding, PropertyType<?> propertyType) |
| Sets a modifier binding. | |
| AbstractBindingRuntime | setModifierBinding (AbstractBinding binding, PropertyType<?> propertyType, PropertyField propertyField) |
| Sets a modifier binding. | |
| AbstractBindingRuntime | setModifierBindingWithOwner (AbstractBinding binding, KanziObject owner, PropertyType<?> propertyType) |
| Sets a modifier binding with owner. | |
| AbstractBindingRuntime | setModifierBindingWithOwner (AbstractBinding binding, KanziObject owner, PropertyType<?> propertyType, PropertyField propertyField) |
| Sets a modifier binding with owner. | |
| void | setName (String name) |
| Sets the value of #NameProperty. | |
| void | setOpacity (float value) |
| Sets the value of #OpacityProperty. | |
| void | setStateManager (Resource value) |
| Sets the value of #StateManagerProperty. | |
| void | setStyle (Resource value) |
| Sets the value of #StyleProperty. | |
| void | setVerticalMargin (Vector2 value) |
| Sets the value of #VerticalMarginProperty. | |
| void | setVisible (boolean value) |
| Sets the value of #VisibleProperty. | |
| void | setWidth (float value) |
| Sets the value of #WidthProperty. | |
| ObjectRef< TResourceType > | tryAcquireResource (ResourceID resourceId) |
| Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary. | |
| void | validateArrange () |
| Validates arrange for the node. | |
| void | validateDraw () |
| Validates draw flags for the node. | |
| void | validateMeasure () |
| Validates measure for the node. | |
| void | validateRender () |
| Validates render for the node. | |
Public Member Functions inherited from NodeProxy | |
| ResourceDictionary | acquireResourceDictionary () |
| Gets a resource dictionary of a node. | |
| boolean | addAbstractChildOverride (Node child) |
| void | addAnonymousResource (Resource resource) |
| Adds anonymous resource (such as style) for object node resources. | |
| void | addInputManipulator (InputManipulator inputManipulator) |
| Transfers the ownership and attaches an input manipulator to an object node. | |
| void | addNodeComponent (NodeComponent nodeComponent) |
| Transfers the ownership of a node component to an object node. | |
| void | addResource (ResourceID resourceId, String resourceUrl) |
| Adds a resource manager resource to an object node. | |
| void | addResourceDictionary (ResourceDictionary resourceDictionary) |
| Adds a nested resource dictionary to the resource dictionary of a node. | |
| void | clearChangeFlag (long flag) |
| Clears a change flag. | |
| boolean | containsResource (ResourceID resourceID) |
| Returns if object node resource dictionary contains the resource with given ID. | |
| void | detachRecursive () |
| Detaches a node and its descendants. | |
| int | getAbstractChildCountOverride () |
| int | getAbstractChildIndexOverride (Node node) |
| Node | getAbstractChildOverride (int index) |
| long | getChangeFlags () |
| Get current change flags. | |
| long | getChildChangeFlags () |
| Get current child change flags. | |
| ResourceDictionary | getResourceDictionary () |
| If a node has a resource dictionary, returns the resource dictionary of that node. | |
| boolean | isAttached () |
| Gets the attached status. | |
| boolean | isAttaching () |
| Gets the attaching status. | |
| boolean | isDetaching () |
| Gets the detaching status. | |
| boolean | isEffectivelyEnabled () |
| Returns the value of EffectivelyEnabledProperty. | |
| boolean | isEffectivelyFocusable () |
| Returns whether a node is focusable. | |
| boolean | isEffectivelyVisible () |
| Returns whether a node and its ancestor nodes are visible. | |
| boolean | isInitialized () |
| Gets the initialized status. | |
| boolean | isNamed (String name) |
| Checks if the node has the given name. | |
| boolean | removeAbstractChildOverride (Node child) |
| void | removeAnonymousResource (Resource resource) |
| Removes anonymous resource from object node resources. | |
| void | removeInputManipulator (InputManipulator inputManipulator) |
| Removes the ownership and detaches an input manipulator from an object node. | |
| void | removeNodeComponent (NodeComponent nodeComponent) |
| Removes the ownership of a node component from an object node. | |
| void | removeResource (ResourceID resourceId) |
| Removes a resource with given ID from object node resource dictionary. | |
| void | setChangeFlag (long flag) |
| Sets a change flag. | |
| void | setResourceDictionary (ResourceDictionary resourceDictionary) |
| Replaces the resource dictionary of a node. | |
| Node | trySetFocus () |
| Tries to move the focus to this node. | |
| Node | trySetFocus (FocusFallback fallbackOption) |
| Tries to set the focus to the newFocusNode using FocusManager.trySetFocus() but with a fallback behavior in case the node does not gain focus. | |
Public Member Functions inherited from KanziObject | |
| boolean | equals (Object object) |
| Domain | getDomain () |
| Returns the domain the object belongs to. | |
| Metaclass | getDynamicMetaclass () |
| Returns the metaclass of the dynamic type of the object. | |
| long | getNative () |
| Gets a pointer to the backing C++ instance. | |
| TDataType | getOptionalProperty (PropertyType< TDataType > propertyType) |
| Returns the current value of a property type, but does not use the default value if there are no inputs to the property value. | |
| TDataType | getProperty (PropertyType< TDataType > propertyType) |
| Returns the current value of a property type. | |
| int | hashCode () |
| boolean | hasValue (PropertyType< TDataType > propertyType) |
| Evaluates whether there are any inputs into the property value. | |
| boolean | isStale () |
| Test if the object is stale i.e. | |
| void | removeLocalValue (PropertyType< TDataType > propertyType) |
| Removes the local value associated with the property. | |
| void | setFlagKeepDuringPatching (PropertyType< TDataType > propertyType) |
| Sets the flag to indicate that the property was loaded from KZB. | |
| void | setProperty (PropertyType< TDataType > propertyType, TDataType value) |
| Sets the local value of a property type. | |
| ObjectRef< TType > | tryCreateObjectRef (Class< TType > clazz) |
| Tries to create an owning ObjectRef instance to this KanziObject. | |
Static Public Attributes | |
| static final Metaclass | metaclass = com.rightware.kanzi.metadata.NodeMetadata.metaclass |
| The Metaclass for the class. | |
Static Public Attributes inherited from NodeProxy | |
| static final Metaclass | metaclass = com.rightware.kanzi.metadata.NodeMetadata.metaclass |
| The Metaclass for the class. | |
Static Public Attributes inherited from KanziObject | |
| static final Metaclass | metaclass = new AbstractMetaclass("Kanzi.Object") |
| The Metaclass for the class. | |
Additional Inherited Members | |
Static Public Member Functions inherited from NodeProxy | |
| static boolean | isUnboundedLayoutValue (float layoutValue) |
| Indicates whether a value is an unbound layout value. | |
| static boolean | isValidLayoutValue (float value) |
| Indicates whether a value is valid layout value. | |
| static float | unboundedLayoutValue () |
| Returns an unbounded layout value. | |
Public Attributes inherited from NodeMetadata | |
| DynamicPropertyType< Float > | ActualDepthProperty |
| The calculated size of the node in depth direction when used in a layout. | |
| DynamicPropertyType< Float > | ActualHeightProperty |
| The calculated height of the node when used in a layout. | |
| DynamicPropertyType< Float > | ActualWidthProperty |
| The calculated width of the node when used in a layout. | |
| DynamicPropertyType< Boolean > | ClipChildrenProperty |
| Sets whether to clip the child nodes of this node. | |
| DynamicPropertyType< NodeEnums.ContentStretch > | ContentStretchProperty |
| Sets how the content that belongs to this node is stretched (as opposed to manipulating the actual node size). | |
| DynamicPropertyType< Boolean > | CreatedFromKZBProperty |
| Kanzi internally uses this property to distinguish objects like bindings and triggers created in code from objects that are loaded from a kzb file. | |
| DynamicPropertyType< NodeEnums.DepthAlignment > | DepthAlignmentProperty |
| The alignment in depth direction the node should use when it resides under a layout. | |
| DynamicPropertyType< Vector2 > | DepthMarginProperty |
| Sets the depth distance between this node and other nodes that are adjacent to this node in a layout. | |
| DynamicPropertyType< Float > | DepthProperty = new DynamicPropertyType<>("Node.Depth", Float.class) |
| The size of the node in depth direction when used in a layout. | |
| DynamicPropertyType< Boolean > | EffectivelyEnabledProperty |
| Indicates whether this node and its ancestor nodes are enabled. | |
| DynamicPropertyType< Boolean > | EnabledProperty |
| Whether this node is enabled. | |
| DynamicPropertyType< Boolean > | FocusableProperty |
| Indicates whether the node can receive focus. | |
| DynamicPropertyType< Boolean > | FocusedProperty |
| Indicates whether the node has the key focus. | |
| DynamicPropertyType< FocusState > | FocusStateProperty |
| Reports the focus state of a node: | |
| DynamicPropertyType< Resource > | FontFamilyProperty |
| The font family used to render the text. | |
| DynamicPropertyType< Float > | HeightProperty |
| The height of the node when used in a layout. | |
| DynamicPropertyType< Boolean > | HitTestableContainerProperty |
| When enabled, Kanzi uses the layout bounds as geometry for hit testing. | |
| DynamicPropertyType< Boolean > | HitTestableProperty |
| When enabled, the node can be hit tested. | |
| DynamicPropertyType< NodeEnums.HorizontalAlignment > | HorizontalAlignmentProperty |
| The alignment in horizontal direction the node should use when it resides under a layout. | |
| DynamicPropertyType< Vector2 > | HorizontalMarginProperty |
| Sets the horizontal space between this node and other nodes that are adjacent to this node in a layout. | |
| DynamicPropertyType< Boolean > | HoverProperty |
| Indicates whether a node is the foremost hit testable node under the cursor. | |
| DynamicPropertyType< String > | LocaleProperty |
| The locale of the node. | |
| AbstractMetaclass | metaclass = new AbstractMetaclass("Kanzi.Node") |
| Metaclass for Node. | |
| DynamicPropertyType< String > | NameProperty = new DynamicPropertyType<>("Node.Name", String.class) |
| Node name. | |
| DynamicPropertyType< Float > | OpacityProperty |
| Opacity of the node. | |
| DynamicPropertyType< String > | PathProperty = new DynamicPropertyType<>("Node.Path", String.class) |
| Full path to the node. | |
| DynamicPropertyType< Float > | Projection2DTo3DScaleProperty |
| Sets the scale factor to project pixels to 3D size. | |
| DynamicPropertyType< Resource > | StateManagerProperty |
| Sets the State Manager to the node. | |
| DynamicPropertyType< Resource > | StyleProperty |
| Sets a style to the node. | |
| DynamicPropertyType< NodeEnums.VerticalAlignment > | VerticalAlignmentProperty |
| The alignment in vertical direction the node should use when it resides under a layout. | |
| DynamicPropertyType< Vector2 > | VerticalMarginProperty |
| Sets the vertical space between this node and other nodes that are adjacent to this node in a layout. | |
| DynamicPropertyType< Float > | VisibleAmountInParentProperty |
| Sets the amount the node is inside its parent. | |
| DynamicPropertyType< Boolean > | VisibleProperty |
| When disabled, Kanzi does not render the node. | |
| DynamicPropertyType< Float > | WidthProperty = new DynamicPropertyType<>("Node.Width", Float.class) |
| The width of the node when used in a layout. | |
Base class for Kanzi nodes.
| ObjectRef< TResourceType > acquireResource | ( | ResourceID | resourceId | ) | throws ObjectNotFoundException |
Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary.
If the resource id maps to a resource url, but the url doesn't map to any resource, throws an exception.
| resourceId | Name of the resource. |
| ObjectNotFoundException | Throws a ObjectNotFoundException when the resourceId is not found. |
| ResourceManager.AcquireTask acquireResourcesAsync | ( | ResourceID | resourceId, |
| ResourceManager.AcquireTask.Callback | callback ) |
Posts an asynchronous task to acquire a resource.
| resourceId | Name of the resource. |
| callback | Callback function that this function calls when resource loading is completed. |
Adds a node as child of this node.
| child | Node to add as child. |
| MessageSubscriptionToken addMessageFilter | ( | MessageType< MessageArgumentsType > | messageType, |
| MessageSubscriptionFunction< MessageArgumentsType > | messageHandlerFunction ) |
Adds a message filter where the filter is a function.
The filter is invoked when a message of messageType bubbles through the node the filter is added to.
| messageType | The message type to listen to. |
| messageHandlerFunction | The function invoked when the node that owns the filter receives a matching message. |
| <MessageArgumentsType> | The message arguments class associated with the message type. |
| MessageSubscriptionToken addMessageHandler | ( | MessageType< MessageArgumentsType > | messageType, |
| MessageSubscriptionFunction< MessageArgumentsType > | messageHandlerFunction ) |
Adds a message handler where the handler is a function.
The handler is invoked when a message of messageType is signaled in the node the handler is added to.
| messageType | The message type to listen to. |
| messageHandlerFunction | The function invoked when the node that owns the handler receives a matching message. The source of the message has to be the node itself. |
| <MessageArgumentsType> | The message arguments class associated with the message type. |
| MessageSubscriptionToken addMessageHandler | ( | MessageType< MessageArgumentsType > | messageType, |
| MessageSubscriptionFunction< MessageArgumentsType > | messageHandlerFunction, | ||
| Node | messageSourceFilter ) |
Adds a message handler where the handler is a function.
The handler is invoked when a message of messageType from the source specified is signaled in the node the handler is added to.
| messageType | The message type to listen to. |
| messageHandlerFunction | The function invoked when the node that owns the handler receives a matching message. |
| messageSourceFilter | The handler will only be called when the message is from this source. |
| <MessageArgumentsType> | The message arguments class associated with the message type. |
| void addNodeComponentWithOwner | ( | NodeComponent | component, |
| KanziObject | owner ) |
Transfers the ownership of a node component to an object node and sets the owner of the node component.
| component | The component being added. |
| owner | The Kanzi object that owns the lifetime of the component. |
| MessageSubscriptionToken addTunnelingMessageFilter | ( | MessageType< MessageArgumentsType > | messageType, |
| MessageSubscriptionFunction< MessageArgumentsType > | messageHandlerFunction ) |
Adds a message filter where the filter is a function.
The filter is invoked when a message of messageType tunnels through the node to which you add this filter.
| messageType | The message type to listen to. |
| messageHandlerFunction | The function invoked when the node that owns the filter receives a matching message. |
| <MessageArgumentsType> | The message arguments class associated with the message type. |
| MessageSubscriptionToken addTunnelingMessageHandler | ( | MessageType< MessageArgumentsType > | messageType, |
| MessageSubscriptionFunction< MessageArgumentsType > | messageHandlerFunction, | ||
| Node | messageSourceFilter ) |
Adds a message handler where the handler is a function and you explicitly define the accepted source.
The handler is invoked when a message of messageType tunnels through the node to which you add the handler, but only when you dispatch it from the given source node.
| messageType | The message type to listen to. |
| messageHandlerFunction | The function invoked when the node that owns the handler receives a matching message. The source of the message has to be the node itself. |
| messageSourceFilter | Source node of the messages. |
| <MessageArgumentsType> | The message arguments class associated with the message type. |
| void attachRecursive | ( | ) |
Attaches an object node and its children recursively.
Reimplemented from NodeProxy.
| void clearChangeFlag | ( | PropertyTypeChangeFlag | flag | ) |
Clears a change flag.
| flag | The flag to clear |
| void dispatchMessage | ( | MessageType< MessageArgumentsType > | messageType, |
| MessageArgumentsType | arguments ) |
Dispatches a message from this node with specified arguments.
| messageType | The type of the dispatched message. |
| arguments | The arguments of the dispatched message. |
| <MessageArgumentsType> | The message arguments class associated with the message type. |
| String findResourceUrl | ( | ResourceID | resourceId | ) |
Tries to find Resource URL for Resource ID from this node.
| resourceId | Resource id to find. |
Returns node at given child index.
| index | Index of the node to get. |
| int getAbstractChildCount | ( | ) |
Returns number of child nodes.
Returns index of given node in list of child nodes.
| node | Node to get child index. |
| float getActualDepth | ( | ) |
Gets the value of #ActualDepthProperty.
| float getActualHeight | ( | ) |
Gets the value of #ActualHeightProperty.
| float getActualWidth | ( | ) |
Gets the value of #ActualWidthProperty.
| float getDepth | ( | ) |
Gets the value of #DepthProperty.
| Vector2 getDepthMargin | ( | ) |
Gets the value of #DepthMarginProperty.
| float getHeight | ( | ) |
Gets the value of #HeightProperty.
| Vector2 getHorizontalMargin | ( | ) |
Gets the value of #HorizontalMarginProperty.
| String getLocale | ( | ) |
Gets the value of #LocaleProperty.
| String getName | ( | ) |
Gets the value of #NameProperty.
| float getOpacity | ( | ) |
Gets the value of #OpacityProperty.
| Node getParent | ( | ) |
Gets parent of this node.
| String getPath | ( | ) |
Gets the value of #PathProperty.
| Resource getStateManager | ( | ) |
Gets the value of #StateManagerProperty.
| Resource getStyle | ( | ) |
Gets the value of #StyleProperty.
| Vector2 getVerticalMargin | ( | ) |
Gets the value of #VerticalMarginProperty.
| float getWidth | ( | ) |
Gets the value of #WidthProperty.
| boolean isAnyChangeFlagSet | ( | EnumSet< PropertyTypeChangeFlag > | flags | ) |
Checks if any of a set of change flags is set.
| flags | The set of flags to check |
| boolean isAnyChildChangeFlagSet | ( | EnumSet< PropertyTypeChangeFlag > | flags | ) |
Checks if any of a set of change flags is set on a child.
| flags | The set of flags to check |
| boolean isChangeFlagSet | ( | PropertyTypeChangeFlag | flag | ) |
Checks if a change flag is set.
| flag | The flag to check |
| boolean isChildChangeFlagSet | ( | PropertyTypeChangeFlag | flag | ) |
Checks if a change flag is set on a child.
| flag | The flag to check |
| boolean isClipChildren | ( | ) |
Gets the value of #ClipChildrenProperty.
| boolean isEnabled | ( | ) |
Gets the value of #EnabledProperty.
| boolean isFocusable | ( | ) |
Gets the value of the #FocusableProperty.
| boolean isFocused | ( | ) |
Sets whether a node is an active focus node and can receive keyboard messages.
In a Kanzi application only one node at a time can have active focus. The default value is false.
| boolean isHitTestable | ( | ) |
Gets the value of #HitTestableProperty.
| boolean isHitTestableContainer | ( | ) |
Gets the value of #HitTestableContainerProperty.
| boolean isHover | ( | ) |
Gets the value of #HoverProperty.
| boolean isInvalidArrange | ( | ) |
Check if the node needs arrange.
| boolean isInvalidDraw | ( | ) |
Tells if node draw flag is invalid.
| boolean isInvalidFinalTransform | ( | ) |
Tells if final transform flag is invalid for node.
| boolean isInvalidMeasure | ( | ) |
Check if the node needs measure.
| boolean isInvalidRender | ( | ) |
Returns if node render flag is invalid.
| boolean isVisible | ( | ) |
Gets the value of #VisibleProperty.
| Iterable< NodeComponent > iterateNodeComponents | ( | ) |
Gets an Iterable object used to iterate the Node Components.
| T lookupNode | ( | String | path | ) |
Returns a node of specified type by looking it up with specified path or alias.
| path | Path to use for relative lookup. |
| <T> | Type of the node. |
| IllegalArgumentException | Throws an IllegalArgumentException if the path is malformed. |
| NodeComponent lookupNodeComponentByName | ( | String | name | ) |
Look up a Node Component by Name.
| name | The search name |
| KanziObject lookupObject | ( | String | path | ) |
Returns a KanziObject by looking it up with specified path or alias.
Object found may be another node or a resource within a node.
| path | Relative path to use for lookup. |
| IllegalArgumentException | Throws an IllegalArgumentException if the path is malformed. |
Reimplemented from NodeProxy.
| void notifyResourceDictionaryModified | ( | ) |
Forces the re-evaluation of resource IDs in a node tree.
If you modify a resource dictionary of a node that is already attached, you can use this function to update the resource properties. Note that you need to use this function only if you modify the dictionary directly through com.rightware.kanzi.Node#getResourceDictionary() or com.rightware.kanzi.Node#acquireResourceDictionary(). If you use other Node class functions like addResource(ResourceID, String) or com.rightware.kanzi.Node#setResourceDictionary(ResourceDictionary), you do not need to call this function.
Reimplemented from NodeProxy.
Removes child node from this node.
| child | Child node to remove. |
| void removeBinding | ( | AbstractBindingRuntime | bindingRuntime | ) |
Removes a binding runtime added earlier.
| bindingRuntime | Binding runtime to remove. |
| void removeBindingsWithOwner | ( | KanziObject | owner | ) |
Removes binding runtimes owned by a KanziObject.
| owner | The Kanzi Object owning the bindings to be removed. |
| void removeMessageHandler | ( | MessageSubscriptionToken | token | ) |
Removes a message subscription.
| token | The message subscription token which identifies the handler or filter. |
| void removeNodeComponentWithOwner | ( | KanziObject | owner | ) |
Removes all node component bindings with the specified owner.
| owner | The Kanzi object used as the owner |
Sets the value of #ActualDepthProperty.
| value | New value. |
Sets the value of #ActualHeightProperty.
| value | New value. |
Sets the value of #ActualWidthProperty.
| value | New value. |
| AbstractBindingRuntime setBinding | ( | AbstractBinding | binding | ) |
Sets a binding.
Local precedence is used.
| binding | Binding to set. |
| AbstractBindingRuntime setBinding | ( | AbstractBinding | binding, |
| PropertyType<?> | propertyType ) |
Sets a binding.
Local precedence is used.
| binding | Binding to set. |
| propertyType | Target property type. |
| AbstractBindingRuntime setBinding | ( | AbstractBinding | binding, |
| PropertyType<?> | propertyType, | ||
| PropertyField | propertyField ) |
Sets a binding.
Local precedence is used.
| binding | Binding to set. |
| propertyType | Target property type. |
| propertyField | Property field. |
| AbstractBindingRuntime setBindingWithOwner | ( | AbstractBinding | binding, |
| KanziObject | owner, | ||
| PropertyType<?> | propertyType ) |
Sets a binding with owner.
Local precedence is used.
| binding | Binding to set. |
| owner | The Kanzi Object owning this binding. |
| propertyType | Target property type. |
| AbstractBindingRuntime setBindingWithOwner | ( | AbstractBinding | binding, |
| KanziObject | owner, | ||
| PropertyType<?> | propertyType, | ||
| PropertyField | propertyField ) |
Sets a binding with owner.
Local precedence is used.
| binding | Binding to set. |
| owner | The Kanzi Object owning this binding. |
| propertyType | Target property type. |
| propertyField | Property field. |
| void setChangeFlag | ( | PropertyTypeChangeFlag | flag | ) |
Sets a change flag.
| flag | The flag to set |
Sets the value of #ClipChildrenProperty.
| value | New value. |
Sets the value of #DepthMarginProperty.
| value | New value. |
Sets the value of the #FocusableProperty.
| value | To enable a node to get active focus and participate in focus chain navigation, set to true, |
Sets the value of the #FocusedProperty.
| value | To set active focus, set to true. To clear focus, set to false. |
Sets the value of #HitTestableProperty.
| value | New value. |
Sets the value of #HitTestableContainerProperty.
| value | New value. |
Sets the value of #HorizontalMarginProperty.
| value | New value. |
| void setLocale | ( | String | value | ) |
Sets the value of #LocaleProperty.
| value | New value. |
| AbstractBindingRuntime setModifierBinding | ( | AbstractBinding | binding, |
| PropertyType<?> | propertyType ) |
Sets a modifier binding.
As opposed to value source created by setBinding(), creates a property modifier binding.
| binding | Binding to set. |
| propertyType | Target property type. |
| AbstractBindingRuntime setModifierBinding | ( | AbstractBinding | binding, |
| PropertyType<?> | propertyType, | ||
| PropertyField | propertyField ) |
Sets a modifier binding.
As opposed to value source created by setBinding(), creates a property modifier binding.
| binding | Binding to set. |
| propertyType | Target property type. |
| propertyField | Property field. |
| AbstractBindingRuntime setModifierBindingWithOwner | ( | AbstractBinding | binding, |
| KanziObject | owner, | ||
| PropertyType<?> | propertyType ) |
Sets a modifier binding with owner.
As opposed to value source created by setBinding(), creates a property modifier binding.
| binding | Binding to set. |
| owner | The Kanzi Object owning this binding. |
| propertyType | Target property type. |
| AbstractBindingRuntime setModifierBindingWithOwner | ( | AbstractBinding | binding, |
| KanziObject | owner, | ||
| PropertyType<?> | propertyType, | ||
| PropertyField | propertyField ) |
Sets a modifier binding with owner.
As opposed to value source created by setBinding(), creates a property modifier binding.
| binding | Binding to set. |
| owner | The Kanzi Object owning this binding. |
| propertyType | Target property type. |
| propertyField | Property field. |
| void setName | ( | String | name | ) |
Sets the value of #NameProperty.
| name | New name to assign. |
Sets the value of #StateManagerProperty.
| value | New value. |
Sets the value of #VerticalMarginProperty.
| value | New value. |
| ObjectRef< TResourceType > tryAcquireResource | ( | ResourceID | resourceId | ) |
Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary.
| resourceId | Name of the resource. |