Class NodePeerBase<N extends Node,NB extends NodePeerBase<N,NB,NM>,NM extends NodePeerMixin<N,NB,NM>>
java.lang.Object
dev.webfx.kit.mapper.peers.javafxgraphics.base.NodePeerBase<N,NB,NM>
- All Implemented Interfaces:
NodePeer<N>
- Direct Known Subclasses:
CanvasPeerBase
,GroupPeerBase
,ImageViewPeerBase
,RegionPeerBase
,ShapePeerBase
,WebViewPeerBase
public class NodePeerBase<N extends Node,NB extends NodePeerBase<N,NB,NM>,NM extends NodePeerMixin<N,NB,NM>>
extends Object
implements NodePeer<N>
- Author:
- Bruno Salmon
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(N node, SceneRequester sceneRequester) getNode()
void
protected void
requestUpdateOnListChange
(SceneRequester sceneRequester, ObservableList list) protected void
requestUpdateOnPropertiesChange
(SceneRequester sceneRequester, ObservableValue... properties) void
void
void
unbind()
boolean
updateList
(ObservableList list, ListChangeListener.Change change) protected <T> boolean
updateList2
(ObservableList<T> list, ObservableList<T> changedList, Consumer<List<T>> updater) protected <T> boolean
updateList2
(ObservableList<T> list, ObservableList<T> changedList, ListChangeListener.Change<T> change, BiConsumer<List<T>, ListChangeListener.Change<T>> updater) boolean
updateProperty
(ObservableValue changedProperty) protected <T> boolean
updateProperty
(ObservableValue<T> property, ObservableValue changedProperty, Consumer<T> updater) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.NodePeer
isTreeVisible, snapshot
-
Field Details
-
node
-
mixin
-
-
Constructor Details
-
NodePeerBase
public NodePeerBase()
-
-
Method Details
-
setMixin
-
bind
-
unbind
public void unbind() -
getNode
-
setNode
-
requestFocus
public void requestFocus()- Specified by:
requestFocus
in interfaceNodePeer<N extends Node>
-
requestUpdateOnPropertiesChange
protected void requestUpdateOnPropertiesChange(SceneRequester sceneRequester, ObservableValue... properties) -
requestUpdateOnListChange
-
updateProperty
- Specified by:
updateProperty
in interfaceNodePeer<N extends Node>
-
updateList
- Specified by:
updateList
in interfaceNodePeer<N extends Node>
-
updateProperty
protected <T> boolean updateProperty(ObservableValue<T> property, ObservableValue changedProperty, Consumer<T> updater) -
updateList2
protected <T> boolean updateList2(ObservableList<T> list, ObservableList<T> changedList, ListChangeListener.Change<T> change, BiConsumer<List<T>, ListChangeListener.Change<T>> updater) -
updateList2
protected <T> boolean updateList2(ObservableList<T> list, ObservableList<T> changedList, Consumer<List<T>> updater)
-