Package edu.wpi.grip.ui.pipeline.input
Class InputSocketController<T>
- java.lang.Object
-
- edu.wpi.grip.ui.pipeline.input.InputSocketController<T>
-
- All Implemented Interfaces:
Controller
- Direct Known Subclasses:
CheckboxInputSocketController,ListSpinnerInputSocketController,NumberSpinnerInputSocketController,RangeInputSocketController,SelectInputSocketController,SliderInputSocketController,TextFieldInputSocketController
@ParametrizedController(url="InputSocket.fxml") public class InputSocketController<T> extends java.lang.Object implements Controller
A JavaFX input that renders anInputSocketthat is an input to a step. This includes an identifier, a handle for connections, and an optional input (if a view is specified in the socket hint) that lets the user manually change the parameters of a step. Subclasses ofInputSocketControllercontrol what sort of input is used (for example, a slider or a checkbox)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInputSocketController.BaseInputSocketControllerFactory<T>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.NodegetContent()SocketHandleViewgetHandle()protected javafx.scene.control.LabelgetIdentifier()javafx.scene.layout.GridPanegetRoot()Socket<T>getSocket()protected voidinitialize()protected voidsetContent(javafx.scene.Node node)
-
-
-
Method Detail
-
initialize
protected void initialize()
-
getHandle
public SocketHandleView getHandle()
- Returns:
- The handle view for this.
-
getContent
public javafx.scene.Node getContent()
-
setContent
protected void setContent(javafx.scene.Node node)
-
getIdentifier
protected javafx.scene.control.Label getIdentifier()
-
getRoot
public final javafx.scene.layout.GridPane getRoot()
- Specified by:
getRootin interfaceController- Returns:
- The root node of the controller.
-
-