@ConsumerType
public interface View
Views allow GUI designers to separate parts of the UI into individual
Components without having to take care of putting all the
parts together manually. A View knows the ID of its parent
Pane and IoCFX takes care of putting it there.
By convention, a View should be derived from Node and its
designated parent should have that View as its only child. The
parent's ID should be the View's class name in camel case postfixed
with "Parent", i.e. the parent of a View that has the class name MyView
should have the ID "myViewParent".
The View's parent must always be a Pane or any derived class,
like a StackPane, HBox, etc.
If the parent has a different ID or the View cannot be derived from
Node, its getParentID() and/or getNode() methods
must be overridden accordingly.
| Modifier and Type | Method and Description |
|---|---|
default javafx.scene.Node |
getNode() |
default String |
getParentID() |
default String getParentID()
default javafx.scene.Node getNode()
Copyright © 2019. All rights reserved.