Class SuppliedValueWidget<T>
java.lang.Object
edu.wpi.first.wpilibj.shuffleboard.ShuffleboardComponent<W>
edu.wpi.first.wpilibj.shuffleboard.SuppliedValueWidget<T>
- Type Parameters:
T
- the type of values in the widget
- All Implemented Interfaces:
AutoCloseable
public final class SuppliedValueWidget<T> extends ShuffleboardComponent<W> implements AutoCloseable
A Shuffleboard widget whose value is provided by user code.
-
Method Summary
Modifier and Type Method Description void
buildInto(NetworkTable parentTable, NetworkTable metaTable)
void
close()
W
withWidget(WidgetType widgetType)
Sets the type of widget used to display the data.W
withWidget(String widgetType)
Sets the type of widget used to display the data.Methods inherited from class edu.wpi.first.wpilibj.shuffleboard.ShuffleboardComponent
buildMetadata, getParent, getTitle, getType, setType, withPosition, withProperties, withSize
-
Method Details
-
buildInto
-
close
- Specified by:
close
in interfaceAutoCloseable
-
withWidget
Sets the type of widget used to display the data. If not set, the default widget type will be used.- Parameters:
widgetType
- the type of the widget used to display the data- Returns:
- this widget object
- See Also:
BuiltInWidgets
-
withWidget
Sets the type of widget used to display the data. If not set, the default widget type will be used. This method should only be used to use a widget that does not come built into Shuffleboard (i.e. one that comes with a custom or third-party plugin). To use a widget that is built into Shuffleboard, usewithWidget(WidgetType)
andBuiltInWidgets
.- Parameters:
widgetType
- the type of the widget used to display the data- Returns:
- this widget object
-