public class FXUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FXUtil.MessageUtil
contains constant values
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACOMPONENT_ACTIVE |
static java.lang.String |
ACOMPONENT_BLOCKED |
static java.lang.String |
ACOMPONENT_EXTARGET |
static java.lang.String |
ACOMPONENT_ID |
static java.lang.String |
ACOMPONENT_NAME |
static java.lang.String |
ACOMPONENT_STARTED |
static java.lang.String |
AFXPERSPECTIVE_PERSPECTIVE_LAYOUT |
static java.lang.String |
APERSPECTIVE_MQUEUE |
static java.lang.String |
EmbeddedFXComponent_ROOT |
static java.lang.String |
IDECLARATIVECOMPONENT_BUNDLE_LOCATION |
static java.lang.String |
IDECLARATIVECOMPONENT_DOCUMENT_URL |
static java.lang.String |
IDECLARATIVECOMPONENT_LOCALE |
static java.lang.String |
IDECLARATIVECOMPONENT_TYPE |
static java.lang.String |
IDECLARATIVECOMPONENT_VIEW_LOCATION |
static java.lang.String |
PATTERN_GLOBAL |
| Constructor and Description |
|---|
FXUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.ResourceBundle |
getBundle(java.lang.String resourceBundleLocation,
java.lang.String localeID)
Returns the resourceBundle
|
static javafx.collections.ObservableList<javafx.scene.Node> |
getChildren(javafx.scene.Node node)
returns children of current node
|
static java.util.Locale |
getCorrectLocale(java.lang.String localeID)
Returns the correct locale by String
|
static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> |
getObserveableById(java.lang.String id,
java.util.List<P> components)
Returns a component by id from a provided component list
|
static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> |
getObserveableByParentId(java.lang.String id,
java.util.List<P> components)
Returns a component by parent id from a provided component list
|
static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> |
getObserveableByQualifiedId(java.lang.String qualifiedId,
java.util.List<P> components)
Returns a component by full qualified id (like parentId.componentId) from a provided component list
|
static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> |
getObserveableByQualifiedId(java.lang.String parentId,
java.lang.String componentId,
java.util.List<P> components)
Returns a component by full qualified id (like parentId.componentId) from a provided component list
|
static java.lang.String |
getParentFromId(java.lang.String messageId)
Returns the parent part of id ... parent.child
|
static java.lang.String |
getQualifiedComponentId(java.lang.String parentId,
java.lang.String componentId)
Creates a full qualified component name like parentId.componentId
|
static java.lang.String |
getTargetComponentId(java.lang.String messageId)
returns the message target component id
|
static java.lang.String |
getTargetPerspectiveId(java.lang.String messageId)
returns the message target perspective id
|
static void |
invokeHandleMethodsByAnnotation(java.lang.Class annotation,
java.lang.Object component,
java.lang.Object... value) |
static boolean |
isLocalMessage(java.lang.String messageId)
when id has no separator it is a local message
|
static <T> javafx.scene.Node |
loadFXMLandSetController(T bean,
java.util.ResourceBundle bundle,
java.net.URL url)
Loads the FXML document provided by viewLocation-
|
static void |
performResourceInjection(org.jacpfx.api.component.Injectable handler,
org.jacpfx.api.context.JacpContext<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object> context)
Injects all Resource memberc like Context
|
static void |
setPrivateMemberValue(java.lang.Class<?> superClass,
java.lang.Object object,
java.lang.String member,
java.lang.Object value)
Set a value to a private member on specified object
|
public static final java.lang.String EmbeddedFXComponent_ROOT
public static final java.lang.String ACOMPONENT_ACTIVE
public static final java.lang.String ACOMPONENT_ID
public static final java.lang.String ACOMPONENT_NAME
public static final java.lang.String ACOMPONENT_EXTARGET
public static final java.lang.String ACOMPONENT_BLOCKED
public static final java.lang.String ACOMPONENT_STARTED
public static final java.lang.String APERSPECTIVE_MQUEUE
public static final java.lang.String IDECLARATIVECOMPONENT_VIEW_LOCATION
public static final java.lang.String IDECLARATIVECOMPONENT_TYPE
public static final java.lang.String IDECLARATIVECOMPONENT_DOCUMENT_URL
public static final java.lang.String IDECLARATIVECOMPONENT_LOCALE
public static final java.lang.String IDECLARATIVECOMPONENT_BUNDLE_LOCATION
public static final java.lang.String AFXPERSPECTIVE_PERSPECTIVE_LAYOUT
public static final java.lang.String PATTERN_GLOBAL
public static javafx.collections.ObservableList<javafx.scene.Node> getChildren(javafx.scene.Node node)
node - , the node where you want to get the child listpublic static void setPrivateMemberValue(java.lang.Class<?> superClass,
java.lang.Object object,
java.lang.String member,
java.lang.Object value)
superClass - , the classobject - , the Object with the private member to be setmember - , the name of the membervalue - , the vakue of the memberpublic static void invokeHandleMethodsByAnnotation(java.lang.Class annotation,
java.lang.Object component,
java.lang.Object... value)
public static void performResourceInjection(org.jacpfx.api.component.Injectable handler,
org.jacpfx.api.context.JacpContext<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object> context)
handler - , the component where injection should be performedcontext - , the context objectpublic static java.util.Locale getCorrectLocale(java.lang.String localeID)
localeID - the locale idpublic static java.util.ResourceBundle getBundle(java.lang.String resourceBundleLocation,
java.lang.String localeID)
resourceBundleLocation - thge location of your resource bundlelocaleID - the locale idpublic static <T> javafx.scene.Node loadFXMLandSetController(T bean,
java.util.ResourceBundle bundle,
java.net.URL url)
T - the type of the beanbean - the controllerbundle - the ressource bundleurl - the fxml urlpublic static java.lang.String getTargetPerspectiveId(java.lang.String messageId)
messageId - the message id to analyzepublic static java.lang.String getParentFromId(java.lang.String messageId)
messageId - the message id to analyzepublic static java.lang.String getTargetComponentId(java.lang.String messageId)
messageId - the message id to analyzepublic static java.lang.String getQualifiedComponentId(java.lang.String parentId,
java.lang.String componentId)
parentId - the parent idcomponentId - the component idpublic static boolean isLocalMessage(java.lang.String messageId)
messageId - the message id to analyzepublic static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> P getObserveableById(java.lang.String id,
java.util.List<P> components)
P - the concrete type of componentid - the component id to look forcomponents - the component listpublic static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> java.util.List<P> getObserveableByParentId(java.lang.String id,
java.util.List<P> components)
P - the concrete type of componentid - the component id to look forcomponents - the component listpublic static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> P getObserveableByQualifiedId(java.lang.String qualifiedId,
java.util.List<P> components)
P - the concrete type of componentqualifiedId - the component id to look forcomponents - the component listpublic static <P extends org.jacpfx.api.component.ComponentBase<javafx.event.EventHandler<javafx.event.Event>,java.lang.Object>> P getObserveableByQualifiedId(java.lang.String parentId,
java.lang.String componentId,
java.util.List<P> components)
P - the concrete type of componentcomponentId - the component id to look forparentId - the parentIdcomponents - the component list