public class FXMLComponentBase extends Object implements FXMLComponent
Constructor and Description |
---|
FXMLComponentBase(Node node,
FXMLController controller)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
FXMLController |
controller()
Return the controller or null.
|
Node |
lookup(String selector)
Return the node or first node matching the selector.
|
Set<Node> |
lookupAll(String selector)
Return the set of node matching the selector.
|
Node |
node()
Return the fxml root node.
|
public FXMLComponentBase(Node node, FXMLController controller)
node
- the loaded fxml node, must not be nullcontroller
- the attached fxml controller (could be null)public Node node()
node
in interface FXMLComponent
public FXMLController controller()
controller
in interface FXMLComponent
public Node lookup(String selector)
lookup
in interface FXMLComponent
selector
- The css selector of the nodes to findNode#lookup(String)}
Copyright © 2011–2016 JRebirth OSS. All rights reserved.