Class LocalOrRemotePanel

    • Constructor Detail

      • LocalOrRemotePanel

        public LocalOrRemotePanel()
        Default constructor.
    • Method Detail

      • getTitle

        public org.forgerock.i18n.LocalizableMessage getTitle()
        Description copied from class: StatusGenericPanel
        Returns the title that will be used as title of the dialog.
        Specified by:
        getTitle in class StatusGenericPanel
        Returns:
        the title that will be used as title of the dialog.
      • getHostName

        public String getHostName()
        Returns the displayed host name.
        Returns:
        the displayed host name.
      • getPort

        public int getPort()
        Returns the displayed administration port.
        Returns:
        the displayed administration port.
      • getBindDN

        public String getBindDN()
        Returns the displayed bind DN.
        Returns:
        the displayed bind DN.
      • getBindPassword

        public char[] getBindPassword()
        Returns the displayed password.
        Returns:
        the displayed password.
      • isRemote

        public boolean isRemote()
        Returns whether the panel displays the remote or the local server.
        Returns:
        whether the panel displays the remote or the local server.
      • setHostName

        public void setHostName​(String hostName)
        Sets the displayed host name.
        Parameters:
        hostName - the host name.
      • setPort

        public void setPort​(int port)
        Sets the displayed administration port.
        Parameters:
        port - the displayed administration port.
      • setBindDN

        public void setBindDN​(String bindDN)
        Sets the displayed bind DN.
        Parameters:
        bindDN - the displayed bind DN.
      • setBindPassword

        public void setBindPassword​(char[] pwd)
        Sets the displayed password.
        Parameters:
        pwd - the password.
      • setRemote

        public void setRemote​(boolean remote)
        Sets whether the panel should display the remote or the local server.
        Parameters:
        remote - whether the panel should display the remote or the local server.
      • setCallOKWhenVisible

        public void setCallOKWhenVisible​(boolean callOKWhenVisible)
        Method to be called when we want the panel to call automatically okClicked method when the panel is made visible.
        Parameters:
        callOKWhenVisible - whether okClicked must be called automatically when the panel is made visible or not.
      • isCallOKWhenVisible

        public boolean isCallOKWhenVisible()
        Returns whether okClicked must be called automatically when the panel is made visible or not.
        Returns:
        whether okClicked must be called automatically when the panel is made visible or not.
      • configurationChanged

        public void configurationChanged​(ConfigurationChangeEvent ev)
        Description copied from interface: ConfigChangeListener
        Method that is called when a change in the configuration occurred.
        Parameters:
        ev - the configuration change event.
      • toBeDisplayed

        public void toBeDisplayed​(boolean visible)
        Description copied from class: StatusGenericPanel
        The panel is notified that the dialog is going to be visible or invisible.
        Overrides:
        toBeDisplayed in class StatusGenericPanel
        Parameters:
        visible - whether is going to be visible or not.
      • okClicked

        public void okClicked()
        Description copied from class: StatusGenericPanel
        Notification that the ok button has been clicked, the panel is in charge of doing whatever is required (close the dialog, launch a task, etc.).
        Specified by:
        okClicked in class StatusGenericPanel
      • cancelClicked

        public void cancelClicked()
        Description copied from class: StatusGenericPanel
        Notification that cancel was clicked, the panel is in charge of doing whatever is required (close the dialog, etc.).
        Overrides:
        cancelClicked in class StatusGenericPanel