org.jacp.javafx2.rcp.util
Class FX2Util

java.lang.Object
  extended by org.jacp.javafx2.rcp.util.FX2Util

public class FX2Util
extends java.lang.Object

Util class with helper methods

Author:
Andy Moncsek

Constructor Summary
FX2Util()
           
 
Method Summary
static javafx.collections.ObservableList<javafx.scene.Node> getChildren(javafx.scene.Node node)
          returns children of current node
static
<P extends org.jacp.api.component.IComponent<javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object>>
P
getObserveableById(java.lang.String id, java.util.List<P> components)
           
static java.lang.String getTargetComponentId(java.lang.String messageId)
          returns the message target component id
static java.lang.String getTargetParentId(java.lang.String messageId)
          returns the message (parent) target id
static java.lang.String getTargetPerspectiveId(java.lang.String messageId)
          returns the message target perspective id
static org.jacp.api.action.IAction<javafx.event.Event,java.lang.Object> getValidAction(org.jacp.api.action.IAction<javafx.event.Event,java.lang.Object> action, java.lang.String target, java.lang.Object message)
          returns cloned action with valid message TODO add to interface
static boolean isLocalMessage(java.lang.String messageId)
          when id has no separator it is a local message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FX2Util

public FX2Util()
Method Detail

getChildren

public static javafx.collections.ObservableList<javafx.scene.Node> getChildren(javafx.scene.Node node)
returns children of current node

Parameters:
node -
Returns:

getTargetParentId

public static java.lang.String getTargetParentId(java.lang.String messageId)
returns the message (parent) target id

Parameters:
messageId -
Returns:

getTargetPerspectiveId

public static final java.lang.String getTargetPerspectiveId(java.lang.String messageId)
returns the message target perspective id

Parameters:
messageId -
Returns:

getTargetComponentId

public static final java.lang.String getTargetComponentId(java.lang.String messageId)
returns the message target component id

Parameters:
messageId -
Returns:

isLocalMessage

public static final boolean isLocalMessage(java.lang.String messageId)
when id has no separator it is a local message

Parameters:
messageId -
Returns:

getObserveableById

public static <P extends org.jacp.api.component.IComponent<javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object>> P getObserveableById(java.lang.String id,
                                                                                                                                                                    java.util.List<P> components)

getValidAction

public static final org.jacp.api.action.IAction<javafx.event.Event,java.lang.Object> getValidAction(org.jacp.api.action.IAction<javafx.event.Event,java.lang.Object> action,
                                                                                                    java.lang.String target,
                                                                                                    java.lang.Object message)
returns cloned action with valid message TODO add to interface

Parameters:
action -
message -
Returns: