Class SpreadSheetProcessorPanel.WidgetPanel

    • Constructor Detail

      • WidgetPanel

        public WidgetPanel​(SpreadSheetProcessorPanel owner,
                           String label,
                           Class widgetClass,
                           AbstractWidget defaultWidget)
        Initializes the panel.
        Parameters:
        label - the label
        widgetClass - the superclass
        defaultWidget - the default widget
    • Method Detail

      • initGUI

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • update

        protected void update()
        Updates the widget.
      • getCurrentWidget

        public AbstractWidget getCurrentWidget()
        Returns the current widget.
        Returns:
        the widget, null if none set
      • selectCurrentWidget

        public boolean selectCurrentWidget​(String name)
        Selects the current widget based on name.
        Parameters:
        name - the widget name
        Returns:
        true if successfully set
      • setCurrentWidget

        public void setCurrentWidget​(AbstractWidget value)
        Sets the current widget.
        Parameters:
        value - the widget