Node. For a Node's tree to be showing
it must be visible, its ancestors must be visible, the node must be part of a Scene and
the scene must have a Window which is currently showing.
This class provides the exact same functionality as NodeHelper#isTreeShowing(Node) in
an observable form.
| Modifier and Type | Field and Description |
|---|---|
| private final Node | |
| private final ChangeListener | |
| private final ChangeListener | |
| private boolean | |
| private boolean | |
| private final ChangeListener |
| Access | Constructor and Description |
|---|---|
| public | TreeShowingProperty(Node
a node)Node for which the tree showing status should be observed, cannot be nullConstructs a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | get()
Implements javafx. Returns the current value of this |
| public Object | getBean()
Implements javafx. Returns the |
| public String | getName()
Implements javafx. Returns the name of this property. |
| protected void | |
| private void | |
| private void | |
| private void |
| node | back to summary |
|---|---|
| private final Node node | |
| nodeSceneChangedListener | back to summary |
|---|---|
| private final ChangeListener<Scene> nodeSceneChangedListener | |
| sceneWindowChangedListener | back to summary |
|---|---|
| private final ChangeListener<Window> sceneWindowChangedListener | |
| treeShowing | back to summary |
|---|---|
| private boolean treeShowing | |
| valid | back to summary |
|---|---|
| private boolean valid | |
| windowShowingChangedListener | back to summary |
|---|---|
| private final ChangeListener<Boolean> windowShowingChangedListener | |
| TreeShowingProperty | back to summary |
|---|---|
| public TreeShowingProperty(Node node) Constructs a new instance. | |
| dispose | back to summary |
|---|---|
| public void dispose() Cleans up any listeners that this class may have registered on the | |
| get | back to summary |
|---|---|
| public boolean get() Implements javafx. Doc from javafx. Returns the current value of this
| |
| getBean | back to summary |
|---|---|
| public Object getBean() Implements javafx. Doc from javafx. Returns the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javafx. Doc from javafx. Returns the name of this property. If the property does not have a name,
this method returns an empty
| |
| invalidate | back to summary |
|---|---|
| protected void invalidate() | |
| sceneChanged | back to summary |
|---|---|
| private void sceneChanged(Scene oldScene, Scene newScene) | |
| updateTreeShowing | back to summary |
|---|---|
| private void updateTreeShowing() | |
| windowChanged | back to summary |
|---|---|
| private void windowChanged(Window oldWindow, Window newWindow) | |