public abstract class AFXComponent extends ASubComponent implements IComponentView<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object>, IDeclarative, javafx.fxml.Initializable
Constructor and Description |
---|
AFXComponent() |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getDocumentURL()
The document URL describing the UI.
|
java.lang.String |
getLocaleID()
Represents the Locale ID, see: http://www.oracle.com/technetwork/java/javase/locales-137662.html.
|
java.util.ResourceBundle |
getResourceBundle()
Contains locale-specific objects.
|
java.lang.String |
getResourceBundleLocation()
Represents the location of your resource bundle file.
|
javafx.scene.Node |
getRoot()
Returns the 'root' ui component created by the handle method.
|
UIType |
getType()
Distinguish component types.
|
java.lang.String |
getViewLocation()
Contains the document url describing the UI.
|
<C> C |
handle(IAction<javafx.event.Event,java.lang.Object> action)
Handles component when called.
|
abstract javafx.scene.Node |
handleAction(IAction<javafx.event.Event,java.lang.Object> action) |
void |
initialize(java.net.URL url,
java.util.ResourceBundle resourceBundle) |
javafx.scene.Node |
postHandle(javafx.scene.Node node,
IAction<javafx.event.Event,java.lang.Object> action)
To avoid toolkit specific threading issues the postHandle method always
called after the handle method.
|
abstract javafx.scene.Node |
postHandleAction(javafx.scene.Node node,
IAction<javafx.event.Event,java.lang.Object> action) |
void |
setLocaleID(java.lang.String localeID) |
void |
setResourceBundleLocation(java.lang.String resourceBundleLocation) |
void |
setViewLocation(java.lang.String document)
Set the viewLocation location on component start.
|
getExecutionTarget, getNextIncomingMessage, getParentId, hasIncomingMessage, initEnv, isBlocked, lock, putIncomingMessage, release, setExecutionTarget
getActionListener, getActionListener, getId, getName, isActive, isStarted, setActive, setId, setName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExecutionTarget, getNextIncomingMessage, getParentId, hasIncomingMessage, initEnv, isBlocked, lock, putIncomingMessage, release, setExecutionTarget
getActionListener, getActionListener, getId, getName, isActive, isStarted, setActive, setId, setName
public final javafx.scene.Node getRoot()
getRoot
in interface UIComponent<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object>
public final <C> C handle(IAction<javafx.event.Event,java.lang.Object> action)
handle
in interface IHandleable<javafx.event.Event,java.lang.Object>
C
- the node return typeaction
- , the triggering actionpublic final javafx.scene.Node postHandle(javafx.scene.Node node, IAction<javafx.event.Event,java.lang.Object> action)
postHandle
in interface IComponentView<javafx.scene.Node,javafx.event.EventHandler<javafx.event.Event>,javafx.event.Event,java.lang.Object>
node
- , the ui nodeaction
- , the trigger actionpublic abstract javafx.scene.Node handleAction(IAction<javafx.event.Event,java.lang.Object> action)
action
- {@inheritDoc}
public abstract javafx.scene.Node postHandleAction(javafx.scene.Node node, IAction<javafx.event.Event,java.lang.Object> action)
node
- action
- {@inheritDoc}
public final java.lang.String getViewLocation()
getViewLocation
in interface IDeclarative
public final void setViewLocation(java.lang.String document)
setViewLocation
in interface IDeclarative
document
- , the url of the FXML documentpublic final void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)
initialize
in interface javafx.fxml.Initializable
public final java.net.URL getDocumentURL()
getDocumentURL
in interface IDeclarative
public final java.util.ResourceBundle getResourceBundle()
getResourceBundle
in interface IDeclarative
public final UIType getType()
getType
in interface IDeclarative
public java.lang.String getLocaleID()
getLocaleID
in interface IDeclarative
public void setLocaleID(java.lang.String localeID)
public java.lang.String getResourceBundleLocation()
getResourceBundleLocation
in interface IDeclarative
public void setResourceBundleLocation(java.lang.String resourceBundleLocation)