Kanzi Java API
Node Class Reference

Base class for Kanzi nodes. More...

Inheritance diagram for Node:
[legend]
Collaboration diagram for Node:
[legend]

Classes

interface  MessageSubscriptionFunction
 
class  MessageSubscriptionToken
 

Public Member Functions

Resource acquireResource (String resourceId) throws ObjectNotFoundException
 Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary. More...
 
ResourceManager.AcquireTask acquireResourcesAsync (String resourceId, ResourceManager.AcquireTask.Callback callback)
 Posts an asynchronous task to acquire a resource. More...
 
boolean addAbstractChild (Node child)
 Adds a node as child of this node. More...
 
void addAnonymousResource (Resource resource)
 Adds anonymous resource (such as style) for object node resources. More...
 
MessageSubscriptionToken addMessageFilter (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction)
 Adds a message filter where the filter is a function. More...
 
MessageSubscriptionToken addMessageHandler (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction)
 Adds a message handler where the handler is a function. More...
 
MessageSubscriptionToken addMessageHandler (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction, Node messageSourceFilter)
 Adds a message handler where the handler is a function. More...
 
void addNodeComponent (NodeComponent component)
 Transfers the ownership of a node component to an object node. More...
 
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. More...
 
void addResource (String resourceId, String resourceUrl)
 Adds a resource manager resource to an object node. More...
 
MessageSubscriptionToken addTunnelingMessageFilter (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction)
 Adds a message filter where the filter is a function. More...
 
MessageSubscriptionToken addTunnelingMessageHandler (MessageType messageType, MessageSubscriptionFunction messageHandlerFunction, Node messageSourceFilter)
 Adds a message handler where the handler is a function and you explicitly define the accepted source. More...
 
void attachRecursive ()
 Attaches a node and its children recursively.
 
boolean containsResource (String resourceId)
 Returns if object node resource dictionary contains the resource with given ID. More...
 
void detachRecursive ()
 Detaches a node and its children recursively.
 
void dispatchMessage (MessageType messageType, MessageArguments arguments)
 Dispatches a message from this node with specified arguments. More...
 
String findResourceUrl (String resourceId)
 Tries to find Resource URL for Resource ID from this node. More...
 
Node getAbstractChild (int index)
 Returns node at given child index. More...
 
int getAbstractChildCount ()
 Returns number of child nodes. More...
 
int getAbstractChildIndex (Node node)
 Returns index of given node in list of child nodes. More...
 
float getActualDepth ()
 Gets the value of #ActualDepthProperty. More...
 
float getActualHeight ()
 Gets the value of #ActualHeightProperty. More...
 
float getActualWidth ()
 Gets the value of #ActualWidthProperty. More...
 
float getDepth ()
 Gets the value of #DepthProperty. More...
 
Vector2 getDepthMargin ()
 Gets the value of #DepthMarginProperty. More...
 
float getHeight ()
 Gets the value of #HeightProperty. More...
 
Vector2 getHorizontalMargin ()
 Gets the value of #HorizontalMarginProperty. More...
 
String getLocale ()
 Gets the value of #LocaleProperty. More...
 
String getName ()
 Gets the value of #NameProperty. More...
 
float getOpacity ()
 Gets the value of #OpacityProperty. More...
 
Node getParent ()
 Gets parent of this node. More...
 
String getPath ()
 Gets the value of #PathProperty. More...
 
Resource getStateManager ()
 Gets the value of #StateManagerProperty. More...
 
Resource getStyle ()
 Gets the value of #StyleProperty. More...
 
Vector2 getVerticalMargin ()
 Gets the value of #VerticalMarginProperty. More...
 
float getWidth ()
 Gets the value of #WidthProperty. More...
 
boolean isAttached ()
 Checks if node is attached to ui tree. More...
 
boolean isAttaching ()
 Checks if node is in the process of attaching to ui tree. More...
 
boolean isClipChildren ()
 Gets the value of #ClipChildrenProperty. More...
 
boolean isDetaching ()
 Checks if node is in the process of getting detached from ui tree. More...
 
boolean isEffectivelyEnabled ()
 Returns whether a node and its ancestor nodes are enabled. More...
 
boolean isEffectivelyFocusable ()
 Returns whether a node and its ancestor focus scope nodes are focusable. More...
 
boolean isEffectivelyVisible ()
 Returns whether a node and its ancestor nodes are visible. More...
 
boolean isEnabled ()
 Gets the value of #EnabledProperty. More...
 
boolean isFocusable ()
 Gets the value of the #FocusableProperty. More...
 
boolean isFocused ()
 Sets whether a node is an active focus node and can receive keyboard messages. More...
 
boolean isHitTestable ()
 Gets the value of #HitTestableProperty. More...
 
boolean isHitTestableContainer ()
 Gets the value of #HitTestableContainerProperty. More...
 
boolean isHover ()
 Gets the value of #HoverProperty. More...
 
boolean isInitialized ()
 Checks if initialize() has been called. More...
 
boolean isNamed (String name)
 Checks if node has a given name. More...
 
boolean isVisible ()
 Gets the value of #VisibleProperty. More...
 
Iterable< NodeComponentiterateNodeComponents ()
 Gets an Iterable object used to iterate the Node Components. More...
 
NodeComponent lookupNodeComponentByName (String name)
 Look up a Node Component bu Name. More...
 
KanziObject lookupObject (String path)
 Returns a KanziObject by looking it up with specified path or alias. More...
 
boolean removeAbstractChild (Node child)
 Removes child node from this node. More...
 
void removeAnonymousResource (Resource resource)
 Removes anonymous resource from object node resources. More...
 
void removeMessageHandler (MessageSubscriptionToken token)
 Removes a message subscription. More...
 
void removeNodeComponent (NodeComponent component)
 Removes the ownership of a node component from an object node. More...
 
void removeNodeComponentWithOwner (KanziObject owner)
 Removes all node component bindings with the specified owner. More...
 
void removeResource (String resourceId)
 Removes a resource with given ID from object node resource dictionary. More...
 
void setActualDepth (float value)
 Sets the value of #ActualDepthProperty. More...
 
void setActualHeight (float value)
 Sets the value of #ActualHeightProperty. More...
 
void setActualWidth (float value)
 Sets the value of #ActualWidthProperty. More...
 
void setAutoHeight ()
 Sets node to automatically determine height.
 
void setAutoWidth ()
 Sets node to automatically determine width.
 
void setClipChildren (boolean value)
 Sets the value of #ClipChildrenProperty. More...
 
void setDepth (float value)
 Sets the value of #DepthProperty. More...
 
void setDepthMargin (Vector2 value)
 Sets the value of #DepthMarginProperty. More...
 
void setEnabled (boolean value)
 Sets the value of the #EnabledProperty. More...
 
void setFocusable (boolean value)
 Sets the value of the #FocusableProperty. More...
 
void setFocused (boolean value)
 Sets the value of the #FocusedProperty. More...
 
void setHeight (float value)
 Sets the value of #HeightProperty. More...
 
void setHitTestable (boolean value)
 Sets the value of #HitTestableProperty. More...
 
void setHitTestableContainer (boolean value)
 Sets the value of #HitTestableContainerProperty. More...
 
void setHorizontalMargin (Vector2 value)
 Sets the value of #HorizontalMarginProperty. More...
 
void setHover (boolean value)
 Sets the value of #HoverProperty. More...
 
void setLocale (String value)
 Sets the value of #LocaleProperty. More...
 
void setName (String name)
 Sets the value of #NameProperty. More...
 
void setOpacity (float value)
 Sets the value of #OpacityProperty. More...
 
void setStateManager (Resource value)
 Sets the value of #StateManagerProperty. More...
 
void setStyle (Resource value)
 Sets the value of #StyleProperty. More...
 
void setVerticalMargin (Vector2 value)
 Sets the value of #VerticalMarginProperty. More...
 
void setVisible (boolean value)
 Sets the value of #VisibleProperty. More...
 
void setWidth (float value)
 Sets the value of #WidthProperty. More...
 
Resource tryAcquireResource (String resourceId)
 Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary. More...
 
Node trySetFocus ()
 Tries to move the focus on this node. More...
 
- Public Member Functions inherited from KanziObject
boolean equals (Object object)
 
Domain getDomain ()
 Returns the domain the object belongs to. More...
 
Metaclass getDynamicMetaclass ()
 Returns the metaclass of the dynamic type of the object. More...
 
boolean isStale ()
 Test if the object is stale i.e. More...
 
void releaseOwnership ()
 Release ownership of the backing native object from this object. More...
 
void removeLocalValue (PropertyType propertyType)
 Removes the local value associated with the property. More...
 
boolean takeOwnership ()
 Take ownership of the backing native object in this object. More...
 

Static Public Member Functions

static Metaclass getStaticMetaclass ()
 Returns the metaclass of this class. More...
 
- Static Public Member Functions inherited from KanziObject
static Metaclass getStaticMetaclass ()
 Returns the metaclass of this class. More...
 

Additional Inherited Members

- Public Attributes inherited from Node
DynamicPropertyType< Float > ActualDepthProperty
 
DynamicPropertyType< Float > ActualHeightProperty
 
DynamicPropertyType< Float > ActualWidthProperty
 
DynamicPropertyType< Boolean > ClipChildrenProperty
 
DynamicPropertyType< Integer > ContentStretchProperty
 
DynamicPropertyType< Boolean > CreatedFromKZBProperty
 
DynamicPropertyType< Integer > DepthAlignmentProperty
 
DynamicPropertyType< Vector2DepthMarginProperty
 
DynamicPropertyType< Float > DepthProperty = new DynamicPropertyType<>("Node.Depth", Float.class)
 
DynamicPropertyType< Boolean > EnableClickProperty
 
DynamicPropertyType< Boolean > EnabledProperty
 
DynamicPropertyType< Boolean > EnableMultiClickProperty
 
DynamicPropertyType< Boolean > FocusableProperty
 
DynamicPropertyType< Boolean > FocusedProperty
 
DynamicPropertyType< ResourceFontFamilyProperty
 
DynamicPropertyType< Float > HeightProperty
 
DynamicPropertyType< Boolean > HitTestableContainerProperty
 
DynamicPropertyType< Boolean > HitTestableProperty
 
DynamicPropertyType< Integer > HorizontalAlignmentProperty
 
DynamicPropertyType< Vector2HorizontalMarginProperty
 
DynamicPropertyType< Boolean > HoverProperty
 
DynamicPropertyType< String > LocaleProperty
 
DynamicPropertyType< String > NameProperty = new DynamicPropertyType<>("Node.Name", String.class)
 
AbstractMetaclass NodeMetaclass = new AbstractMetaclass("Kanzi.Node")
 
DynamicPropertyType< Float > OpacityProperty
 
DynamicPropertyType< String > PathProperty = new DynamicPropertyType<>("Node.Path", String.class)
 
DynamicPropertyType< Float > Projection2DTo3DScaleProperty
 
DynamicPropertyType< ResourceStateManagerProperty
 
DynamicPropertyType< ResourceStyleProperty
 
DynamicPropertyType< Integer > VerticalAlignmentProperty
 
DynamicPropertyType< Vector2VerticalMarginProperty
 
DynamicPropertyType< Float > VisibleAmountInParentProperty
 
DynamicPropertyType< Boolean > VisibleProperty
 
DynamicPropertyType< Float > WidthProperty = new DynamicPropertyType<>("Node.Width", Float.class)
 

Detailed Description

Base class for Kanzi nodes.

Member Function Documentation

Resource acquireResource ( String  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.

Parameters
resourceIdName of the resource.
Returns
The acquired resource
Exceptions
ObjectNotFoundExceptionThrows a ObjectNotFoundException when the resourceId is not found.
ResourceManager.AcquireTask acquireResourcesAsync ( String  resourceId,
ResourceManager.AcquireTask.Callback  callback 
)

Posts an asynchronous task to acquire a resource.

Parameters
resourceIdName of the resource.
callbackCallback function that this function calls when resource loading is completed.
Returns
Handle to the async load task. You can pass the handle to ResourceManager#wait(AcquireTask) to wait for the completion of the load.
boolean addAbstractChild ( Node  child)

Adds a node as child of this node.

Parameters
childNode to add as child.
Returns
True if operation was successful, otherwise false.
void addAnonymousResource ( Resource  resource)

Adds anonymous resource (such as style) for object node resources.

Parameters
resourceThe resource to be added.
MessageSubscriptionToken addMessageFilter ( MessageType  messageType,
MessageSubscriptionFunction  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.

Parameters
messageTypeThe message type to listen to.
messageHandlerFunctionThe function invoked when the node that owns the filter receives a matching message.
Returns
The MessageSubscriptionToken which identifies the added filter.
MessageSubscriptionToken addMessageHandler ( MessageType  messageType,
MessageSubscriptionFunction  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.

Parameters
messageTypeThe message type to listen to.
messageHandlerFunctionThe function invoked when the node that owns the handler receives a matching message. The source of the message has to be the node itself.
Returns
The MessageSubscriptionToken which identifies the added handler.
MessageSubscriptionToken addMessageHandler ( MessageType  messageType,
MessageSubscriptionFunction  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.

Parameters
messageTypeThe message type to listen to.
messageHandlerFunctionThe function invoked when the node that owns the handler receives a matching message.
messageSourceFilterThe handler will only be called when the message is from this source.
Returns
The MessageSubscriptionToken which identifies the added handler.
void addNodeComponent ( NodeComponent  component)

Transfers the ownership of a node component to an object node.

Parameters
componentThe component being added.
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.

Parameters
componentThe component being added.
ownerThe Kanzi object that owns the lifetime of the component.
void addResource ( String  resourceId,
String  resourceUrl 
)

Adds a resource manager resource to an object node.

If resourceID already exists in object, removes the existing entry. If resourceURL is NULL, error is thrown.

Parameters
resourceIdResource id of the resource.
resourceUrlResource url of the resource.
MessageSubscriptionToken addTunnelingMessageFilter ( MessageType  messageType,
MessageSubscriptionFunction  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.

Parameters
messageTypeThe message type to listen to.
messageHandlerFunctionThe function invoked when the node that owns the filter receives a matching message.
Returns
The MessageSubscriptionToken which identifies the added filter.
MessageSubscriptionToken addTunnelingMessageHandler ( MessageType  messageType,
MessageSubscriptionFunction  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.

Parameters
messageTypeThe message type to listen to.
messageHandlerFunctionThe function invoked when the node that owns the handler receives a matching message. The source of the message has to be the node itself.
messageSourceFilterSource node of the messages.
Returns
The MessageSubscriptionToken which identifies the added handler.
boolean containsResource ( String  resourceId)

Returns if object node resource dictionary contains the resource with given ID.

Resource can be any type: style, alias or resource manager resource.

Parameters
resourceIdResource id of resource to check.
Returns
True if node contains this resource, otherwise false.
void dispatchMessage ( MessageType  messageType,
MessageArguments  arguments 
)

Dispatches a message from this node with specified arguments.

Parameters
messageTypeThe type of the dispatched message.
argumentsThe arguments of the dispatched message.
String findResourceUrl ( String  resourceId)

Tries to find Resource URL for Resource ID from this node.

Parameters
resourceIdResource id to find.
Returns
Resource url of resource, can be null if resource was not found.
Node getAbstractChild ( int  index)

Returns node at given child index.

Parameters
indexIndex of the node to get.
Returns
Node at given child index.
int getAbstractChildCount ( )

Returns number of child nodes.

Returns
Number of child nodes.
int getAbstractChildIndex ( Node  node)

Returns index of given node in list of child nodes.

Parameters
nodeNode to get child index.
Returns
Index of given node in list of child nodes.
float getActualDepth ( )

Gets the value of #ActualDepthProperty.

Returns
Current value.
float getActualHeight ( )

Gets the value of #ActualHeightProperty.

Returns
Current value.
float getActualWidth ( )

Gets the value of #ActualWidthProperty.

Returns
Current value.
float getDepth ( )

Gets the value of #DepthProperty.

Returns
Current value.
Vector2 getDepthMargin ( )

Gets the value of #DepthMarginProperty.

Returns
Current value.
float getHeight ( )

Gets the value of #HeightProperty.

Returns
Current value.
Vector2 getHorizontalMargin ( )

Gets the value of #HorizontalMarginProperty.

Returns
Current value.
String getLocale ( )

Gets the value of #LocaleProperty.

Returns
Current value.
String getName ( )

Gets the value of #NameProperty.

Returns
Name of the node.
float getOpacity ( )

Gets the value of #OpacityProperty.

Returns
Current value.
Node getParent ( )

Gets parent of this node.

Returns
Parent of this node.
String getPath ( )

Gets the value of #PathProperty.

Returns
Path of the node.
Resource getStateManager ( )

Gets the value of #StateManagerProperty.

Returns
Current value of #StateManagerProperty.
static Metaclass getStaticMetaclass ( )
static

Returns the metaclass of this class.

Returns
Static instance of metaclass of this node.
Resource getStyle ( )

Gets the value of #StyleProperty.

Returns
Current value of the #StyleProperty.
Vector2 getVerticalMargin ( )

Gets the value of #VerticalMarginProperty.

Returns
Current value.
float getWidth ( )

Gets the value of #WidthProperty.

Returns
Current value.
boolean isAttached ( )

Checks if node is attached to ui tree.

Returns
Returns true if the node is attached to a ui tree, otherwise false.
boolean isAttaching ( )

Checks if node is in the process of attaching to ui tree.

Returns
Returns true if the node is in the process of attaching to a ui tree, otherwise false.
boolean isClipChildren ( )

Gets the value of #ClipChildrenProperty.

Returns
Current value.
boolean isDetaching ( )

Checks if node is in the process of getting detached from ui tree.

Returns
Returns true if the node is in the process of getting detached from a ui tree, otherwise false.
boolean isEffectivelyEnabled ( )

Returns whether a node and its ancestor nodes are enabled.

Returns
True if node and its ancestor nodes are enabled.
boolean isEffectivelyFocusable ( )

Returns whether a node and its ancestor focus scope nodes are focusable.

The ancestor focus scope lookup stops once a popup-type focus scope is reached.

Returns
If the node is focusable, returns true. If the node is in a focus scope that is not focusable, or the node is not focusable, returns false.
boolean isEffectivelyVisible ( )

Returns whether a node and its ancestor nodes are visible.

Returns
True if node and its ancestor nodes are visible.
boolean isEnabled ( )

Gets the value of #EnabledProperty.

Returns
Current value.
boolean isFocusable ( )

Gets the value of the #FocusableProperty.

Returns
Current value.
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.

Returns
Current value of #FocusedProperty.
boolean isHitTestable ( )

Gets the value of #HitTestableProperty.

Returns
Current value.
boolean isHitTestableContainer ( )

Gets the value of #HitTestableContainerProperty.

Returns
Current value.
boolean isHover ( )

Gets the value of #HoverProperty.

Returns
Current value.
boolean isInitialized ( )

Checks if initialize() has been called.

Returns
True if initialize() has been called, false otherwise.
boolean isNamed ( String  name)

Checks if node has a given name.

Parameters
nameName to check.
Returns
True if node name matches the passed argument, otherwise false.
boolean isVisible ( )

Gets the value of #VisibleProperty.

Returns
Current value.
Iterable<NodeComponent> iterateNodeComponents ( )

Gets an Iterable object used to iterate the Node Components.

Returns
An iterable of Node Components.
NodeComponent lookupNodeComponentByName ( String  name)

Look up a Node Component bu Name.

Parameters
nameThe search name
Returns
The Node Component that has been found, or null if no node component was found.
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.

Parameters
pathRelative path to use for lookup.
Returns
Item found as KanziObject. May be null if no object found.
Exceptions
IllegalArgumentExceptionThrows an IllegalArgumentException if the path is malformed.
boolean removeAbstractChild ( Node  child)

Removes child node from this node.

Parameters
childChild node to remove.
Returns
True if the operation was successful, otherwise false.
void removeAnonymousResource ( Resource  resource)

Removes anonymous resource from object node resources.

Parameters
resource
void removeMessageHandler ( MessageSubscriptionToken  token)

Removes a message subscription.

Parameters
tokenThe message subscription token which identifies the handler or filter.
void removeNodeComponent ( NodeComponent  component)

Removes the ownership of a node component from an object node.

Parameters
componentThe component being removed.
void removeNodeComponentWithOwner ( KanziObject  owner)

Removes all node component bindings with the specified owner.

Parameters
ownerThe Kanzi object used as the owner
void removeResource ( String  resourceId)

Removes a resource with given ID from object node resource dictionary.

Does not do anything if resourceID was not found.

Parameters
resourceIdResource id of resource to remove.
void setActualDepth ( float  value)

Sets the value of #ActualDepthProperty.

Parameters
valueNew value.
void setActualHeight ( float  value)

Sets the value of #ActualHeightProperty.

Parameters
valueNew value.
void setActualWidth ( float  value)

Sets the value of #ActualWidthProperty.

Parameters
valueNew value.
void setClipChildren ( boolean  value)

Sets the value of #ClipChildrenProperty.

Parameters
valueNew value.
void setDepth ( float  value)

Sets the value of #DepthProperty.

Parameters
valueNew value.
void setDepthMargin ( Vector2  value)

Sets the value of #DepthMarginProperty.

Parameters
valueNew value.
void setEnabled ( boolean  value)

Sets the value of the #EnabledProperty.

Parameters
valueNew value.
void setFocusable ( boolean  value)

Sets the value of the #FocusableProperty.

Parameters
valueTo enable a node to get active focus and participate in focus chain navigation, set to true,
void setFocused ( boolean  value)

Sets the value of the #FocusedProperty.

Parameters
valueTo set active focus, set to true. To clear focus, set to false.
void setHeight ( float  value)

Sets the value of #HeightProperty.

Parameters
valueNew value.
void setHitTestable ( boolean  value)

Sets the value of #HitTestableProperty.

Parameters
valueNew value.
void setHitTestableContainer ( boolean  value)

Sets the value of #HitTestableContainerProperty.

Parameters
valueNew value.
void setHorizontalMargin ( Vector2  value)

Sets the value of #HorizontalMarginProperty.

Parameters
valueNew value.
void setHover ( boolean  value)

Sets the value of #HoverProperty.

Parameters
valueNew value.
void setLocale ( String  value)

Sets the value of #LocaleProperty.

Parameters
valueNew value.
void setName ( String  name)

Sets the value of #NameProperty.

Parameters
nameNew name to assign.
void setOpacity ( float  value)

Sets the value of #OpacityProperty.

Parameters
valueNew value.
void setStateManager ( Resource  value)

Sets the value of #StateManagerProperty.

Parameters
valueNew value.
void setStyle ( Resource  value)

Sets the value of #StyleProperty.

Parameters
valueNew style.
void setVerticalMargin ( Vector2  value)

Sets the value of #VerticalMarginProperty.

Parameters
valueNew value.
void setVisible ( boolean  value)

Sets the value of #VisibleProperty.

Parameters
valueNew value.
void setWidth ( float  value)

Sets the value of #WidthProperty.

Parameters
valueNew value.
Resource tryAcquireResource ( String  resourceId)

Acquires a resource from the node or the node's closest ancestor having the resource id in the resource dictionary.

Parameters
resourceIdName of the resource.
Returns
The acquired resource, or null if the resource id or resource url doesn't map to any resource.
Node trySetFocus ( )

Tries to move the focus on this node.

If this node is a focus scope node, this method tries to focus the preserved focus of the focus scope, or tries to focus on the first focusable descendant node of this node.

Returns
If this method successfully moved focus, returns this node or a descendant node of this node. If this method did not move focus, returns null.