Package org.zkoss.bind.sys.tracker
Interface TrackerNode
- All Known Implementing Classes:
TrackerNodeImpl
public interface TrackerNode
Tracker Node in a binding dependency graph.
- Since:
- 6.0.0
- Author:
- henrichen
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssociate(TrackerNode srcnode) add associated TrackerNode with this nodevoidaddBinding(Binding binding) add associated Binding with this nodevoidaddDependent(Object script, TrackerNode dependent) Add a dependent node of the field script.Returns all associate nodes of this node.getBean()Returns associated bean of this TrackerNode.Returns all associated Bindings.getDependent(Object script) Returns the associated TrackerNode of the associated field script of this tracker node.Returns all dependent nodes of this node.getDependents(Object script) Returns all associated TrackerNodes of the associated field script of this tracker node.Returns all direct dependent nodes of this node.Returns associated field script of this TrackerNode.Returns associated LoadBindings except ReferenceBindings.get property, tracker node mapping mapReturns associated ReferenceBindings.default booleanisPropNameNodeMapped(TrackerNode trackerNode) Internal used onlyremoveDependent(Object script) Remove a dependent node of this node per the specified field script.voidSets associated bean of this TrackerNode.voidtieProperty(Object propName, TrackerNode trackerNode) tie property with tracker node of this node.
-
Method Details
-
getDependents
Set<TrackerNode> getDependents()Returns all dependent nodes of this node.- Returns:
- all precedent nodes of this node.
-
getDependents
Returns all associated TrackerNodes of the associated field script of this tracker node.- Parameters:
script- field script to get the dependent- Returns:
- all linked TrackerNodes
- Since:
- 8.0.0
-
getDirectDependents
Set<TrackerNode> getDirectDependents()Returns all direct dependent nodes of this node.- Returns:
- all direct dependent nodes of this node.
-
getAssociates
Set<TrackerNode> getAssociates()Returns all associate nodes of this node.- Returns:
- all associate nodes of this node.
-
getDependent
Returns the associated TrackerNode of the associated field script of this tracker node.- Parameters:
script- field script to get the dependent- Returns:
- the linked TrackerNode
-
addDependent
Add a dependent node of the field script.- Parameters:
script- the field script to link this track node to its dependent nodes.dependent- the TrackerNode to be added
-
removeDependent
Remove a dependent node of this node per the specified field script.- Parameters:
script- field script that link to the to be removed dependent tracker node.- Returns:
- the removed TrackerNode
-
addBinding
add associated Binding with this node- Parameters:
binding-
-
getBindings
Returns all associated Bindings.- Returns:
- associated Bindings.
-
getLoadBindings
Set<LoadBinding> getLoadBindings()Returns associated LoadBindings except ReferenceBindings.- Returns:
- associated LoadBindings except ReferenceBindings.
- Since:
- 6.0.1
-
getReferenceBindings
Set<ReferenceBinding> getReferenceBindings()Returns associated ReferenceBindings.- Returns:
- associated ReferenceBindings.
- Since:
- 6.0.1
-
getBean
Object getBean()Returns associated bean of this TrackerNode.- Returns:
- associated bean of this TrackerNode.
-
setBean
Sets associated bean of this TrackerNode.- Parameters:
bean- the associated bean.
-
getFieldScript
Object getFieldScript()Returns associated field script of this TrackerNode.- Returns:
- associated field script of this TrackerNode.
-
addAssociate
add associated TrackerNode with this node- Parameters:
srcnode-- Since:
- 6.5.5
-
tieProperty
tie property with tracker node of this node.- Parameters:
propName-trackerNode-- Since:
- 6.5.5
-
getPropNameMapping
get property, tracker node mapping map- Since:
- 6.5.5
-
isPropNameNodeMapped
Internal used only- Parameters:
trackerNode-- Returns:
- boolean is the tracker node with specific propName in bracket mapped or not
- Since:
- 9.6.0
-