Class MacroWidget

    • Constructor Detail

      • MacroWidget

        public MacroWidget​(java.lang.String type)
        Widget constructor.
        Parameters:
        type - Widget type
      • MacroWidget

        public MacroWidget​(java.lang.String type,
                           int default_width,
                           int default_height)
        Widget constructor.
        Parameters:
        type - Widget type
        default_width - Default width
        default_height - .. and height
    • Method Detail

      • importPVName

        public static void importPVName​(org.csstudio.display.builder.model.persist.ModelReader model_reader,
                                        Widget widget,
                                        org.w3c.dom.Element widget_xml)
        Helper for WidgetConfigurator that imports 'pv_name' as macro

        Legacy displays had a 'pv_name' property on static widgets even though those widgets didn't have an actual PV. The 'pv_name' property was simply treated as a macro, allowing for example scripts to then refer to '$(pv_name)'.

        This imports it as an actual macro.