Class SimpleWidget

    • Method Detail

      • getEntry

        public NetworkTableEntry getEntry()
        Gets the NetworkTable entry that contains the data for this widget.
        Returns:
        The NetworkTable entry that contains the data for this widget.
      • withWidget

        public final W withWidget​(WidgetType widgetType)
        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

        public final W withWidget​(String widgetType)
        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, use withWidget(WidgetType) and BuiltInWidgets.
        Parameters:
        widgetType - the type of the widget used to display the data
        Returns:
        this widget object