Interface GUIAccess


  • public interface GUIAccess

    Used to access the GUI features of the Frame in which a CustomCodePanel is contained.

    The GUIAccess object is obtained through the CustomCodePanelProxy object by a request for the GUIAccess class, as follows:

    Given an instance of CustomCodePanelProxy proxy,

    GUIAccess gui = (GUIAccess)proxy.getService(GUIAccess.class);
    gui.getFrame().setTitle("new title");
    gui.setExitButtonEnabled(false);
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.Frame getFrame()
      Gets the Frame in which the CustomCodePanel is contained.
      java.awt.Font getInstallerFont()
      Gets the Standard Font of the installer.
      java.awt.Color getInstallerFontColor()
      Gets the Standard Font color of the installer.
      void goNext()
      This method programatically simulates the end-user clicking the "Next" button of the installation navigator.
      void goPrevious()
      This method programatically simulates the end-user clicking the "Previous" button of the installation navigator.
      void setExitButtonEnabled​(boolean b)
      Disables or enables the button responsible for exiting the installer.
      void setExitButtonVisible​(boolean visible)
      Shows or hides the button responsible for exiting the installer.
      void setNextButtonEnabled​(boolean enabled)
      Disables or enables the button responsible for advancing to the next installation action or step.
      void setNextButtonVisible​(boolean visible)
      Shows or hides the button responsible for advancing to the next installation action or step.
      void setPreviousButtonEnabled​(boolean b)
      Disables or enables the button responsible for returning to the previous installation action or step.
      void setPreviousButtonVisible​(boolean visible)
      Shows or hides the button responsible for returning to the previous installation action or step.
    • Method Detail

      • getFrame

        java.awt.Frame getFrame()

        Gets the Frame in which the CustomCodePanel is contained.

        Returns:
        The Frame in which the CustomCodePanel is contained.
      • getInstallerFont

        java.awt.Font getInstallerFont()

        Gets the Standard Font of the installer.

        Returns:
        The Font of the standard panels of the installer.
      • getInstallerFontColor

        java.awt.Color getInstallerFontColor()

        Gets the Standard Font color of the installer.

        Returns:
        The Font color of the standard panels of the installer.
      • setNextButtonVisible

        void setNextButtonVisible​(boolean visible)

        Shows or hides the button responsible for advancing to the next installation action or step.

        This method should only be called after the install panel has been displayed.

        Parameters:
        visible - whether the button is visible.
        See Also:
        CustomCodePanel.panelIsDisplayed()
      • setPreviousButtonEnabled

        void setPreviousButtonEnabled​(boolean b)

        Disables or enables the button responsible for returning to the previous installation action or step.

        This method should only be called after the install panel has been displayed.

        Parameters:
        enabled - whether the button is enabled.
        See Also:
        CustomCodePanel.panelIsDisplayed()
      • setPreviousButtonVisible

        void setPreviousButtonVisible​(boolean visible)

        Shows or hides the button responsible for returning to the previous installation action or step.

        This method should only be called after the install panel has been displayed.

        Parameters:
        visible - whether the button is visible.
        See Also:
        CustomCodePanel.panelIsDisplayed()
      • setExitButtonEnabled

        void setExitButtonEnabled​(boolean b)

        Disables or enables the button responsible for exiting the installer.

        This method should only be called after the install panel has been displayed.

        Parameters:
        enabled - whether the button is enabled.
        See Also:
        CustomCodePanel.panelIsDisplayed()
      • setExitButtonVisible

        void setExitButtonVisible​(boolean visible)

        Shows or hides the button responsible for exiting the installer.

        This method should only be called after the install panel has been displayed.

        Parameters:
        visible - whether the button is visible.
        See Also:
        CustomCodePanel.panelIsDisplayed()
      • goNext

        void goNext()

        This method programatically simulates the end-user clicking the "Next" button of the installation navigator.

        See Also:
        CustomCodePanel.clickNextButton()
      • goPrevious

        void goPrevious()

        This method programatically simulates the end-user clicking the "Previous" button of the installation navigator.