Class LEDWidget


  • public class LEDWidget
    extends BaseLEDWidget
    Widget that displays an LED which reflects the on/off state of a PV
    • Field Detail

      • WIDGET_DESCRIPTOR

        public static final org.csstudio.display.builder.model.WidgetDescriptor WIDGET_DESCRIPTOR
        Widget descriptor
    • Constructor Detail

      • LEDWidget

        public LEDWidget()
    • Method Detail

      • propBit

        public WidgetProperty<java.lang.Integer> propBit()
        Returns:
        'bit' property
      • propOffLabel

        public WidgetProperty<java.lang.String> propOffLabel()
        Returns:
        'off_label' property
      • propOffColor

        public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propOffColor()
        Returns:
        'off_color' property
      • propOnLabel

        public WidgetProperty<java.lang.String> propOnLabel()
        Returns:
        'on_label' property
      • propOnColor

        public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propOnColor()
        Returns:
        'off_color' property
      • propLabelsFromPV

        public WidgetProperty<java.lang.Boolean> propLabelsFromPV()
        Returns:
        'labels_from_pv' property
      • getConfigurator

        public org.csstudio.display.builder.model.WidgetConfigurator getConfigurator​(org.csstudio.display.builder.model.Version persisted_version)
                                                                              throws java.lang.Exception
        Description copied from class: Widget
        Obtain configurator.

        While typically using the default WidgetConfigurator, widget may provide a different configurator for reading older persisted date.

        Overrides:
        getConfigurator in class Widget
        Parameters:
        persisted_version - Version of the persisted data.
        Returns:
        Widget configurator for that version
        Throws:
        java.lang.Exception - if persisted version cannot be handled