Class ButtonsPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class ButtonsPanel
    extends JPanel
    This class contains the buttons in the bottom of the Install/Uninstall dialog. There is only one of this instances for the QuickSetupDialog. The layout is updated calling setCurrentStep method.
    See Also:
    Serialized Form
    • Constructor Detail

      • ButtonsPanel

        public ButtonsPanel​(GuiApplication application)
        Default constructor.
        Parameters:
        application - Application running in QuickSetup
    • Method Detail

      • addButtonActionListener

        public void addButtonActionListener​(ButtonActionListener l)
        Adds a button listener. All the button listeners will be notified when the buttons are clicked (by the user or programatically).
        Parameters:
        l - the ButtonActionListener to be added.
      • removeButtonActionListener

        public void removeButtonActionListener​(ButtonActionListener l)
        Removes a button listener.
        Parameters:
        l - the ButtonActionListener to be removed.
      • updateButtons

        public void updateButtons​(WizardStep step)
        Updates the layout of the panel so that it corresponds to the Step passed as parameter.
        Parameters:
        step - the step in the wizard.
      • getButton

        public JButton getButton​(ButtonName buttonName)
        Returns the button corresponding to the buttonName.
        Parameters:
        buttonName - the ButtonName for which we want to get the button.
        Returns:
        the button corresponding to the buttonName.
      • getQuickSetup

        protected QuickSetup getQuickSetup()
        Gets the instance of QuickSetup acting as controller.
        Returns:
        QuickSetup instance
      • getMainWindow

        public Component getMainWindow()
        Returns the frame or window containing this panel.
        Returns:
        the frame or window containing this panel.
      • getApplication

        protected GuiApplication getApplication()
        Gets the application this panel represents.
        Returns:
        GuiApplication this panel represents