public class PerspectiveRegistry
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearOnShutdown()
clears registry on application shutdown
|
static org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> |
findNextActivePerspective(org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> current)
Returns the next active perspective.
|
static org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> |
findPerspectiveById(java.lang.String targetId)
Returns a perspective by perspectiveId
|
static org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> |
findPerspectiveById(java.lang.String parentId,
java.lang.String componentId)
Returns a perspective by perspectiveId
|
static java.lang.String |
getAndSetCurrentVisiblePerspective(java.lang.String id)
Set a new perspective id and returns the current id.
|
static java.lang.String |
getCurrentVisiblePerspective()
returns the current visible perspective id.
|
static boolean |
perspectiveContainsComponentIdInAnnotation(java.lang.String parentId,
java.lang.String componentId)
Checks if a specific componentId is present in defined perspective annotation.
|
static void |
registerPerspective(org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> perspective)
Registers a perspective.
|
static void |
removePerspective(org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> perspective)
Removes perspective from registry.
|
public static void clearOnShutdown()
public static java.lang.String getAndSetCurrentVisiblePerspective(java.lang.String id)
id, - the new perspective idpublic static java.lang.String getCurrentVisiblePerspective()
public static void registerPerspective(org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> perspective)
perspective, - a perspective to registerpublic static void removePerspective(org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> perspective)
perspective, - a perspective to removepublic static org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> findNextActivePerspective(org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> current)
current - the current active perspectivepublic static org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> findPerspectiveById(java.lang.String targetId)
targetId - , the target perspective idpublic static org.jacpfx.api.component.Perspective<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object> findPerspectiveById(java.lang.String parentId,
java.lang.String componentId)
componentId - , the target perspective idparentId - , the target workbench idpublic static boolean perspectiveContainsComponentIdInAnnotation(java.lang.String parentId,
java.lang.String componentId)
parentId - The perspective IDcomponentId - The component ID