public interface Component
Components can also be FXML controllers. This allows the component to define its view
in an
FXML file and only have to contain the logic of controlling or manipulating that view. Such components should have
an @ParametrizedController
annotation so that shuffleboard can know where the FXML
file is located.
Type | Property and Description |
---|---|
javafx.beans.property.Property<java.lang.String> |
title
Gets the label for this component.
|
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<Component> |
allComponents()
All of the components contained by or represented by this one, if any.
|
java.lang.String |
getName()
Gets the name of this widget type.
|
java.util.List<Group> |
getSettings()
Gets the settings for this component.
|
default java.lang.String |
getTitle()
Gets the value of the property title.
|
javafx.scene.layout.Pane |
getView()
Gets a JavaFX pane that displays this component.
|
default void |
setTitle(java.lang.String title)
Sets the value of the property title.
|
javafx.beans.property.Property<java.lang.String> |
titleProperty()
Gets the label for this component.
|
javafx.beans.property.Property<java.lang.String> titleProperty
getTitle()
,
setTitle(String)
javafx.scene.layout.Pane getView()
javafx.beans.property.Property<java.lang.String> titleProperty()
getTitle()
,
setTitle(String)
default java.lang.String getTitle()
default void setTitle(java.lang.String title)
java.util.stream.Stream<Component> allComponents()
java.lang.String getName()
component registry
will fail and this component will not be usable. The name is
class-intrinsic.java.util.List<Group> getSettings()
General structure:
ImmutableList.of(
Group.of("Group Name",
Setting.of("Setting name", settingProperty)
)
);