Class PIALoginPanel

All Implemented Interfaces:
ActionListener, FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PIALoginPanel extends ImagePanel implements ActionListener, FocusListener
generic login panel that can be used to log in to Portal with a PInfranetConnection. It displays the image specified by the "image" property in the background. This panel will read Infranet.properties and attempt to fill in the textfields with any specified defaults for login, CM, and port.
Version:
%version: 16 % %date_modified: Tue Oct 23 18:51:42 2001 %
Author:
kapono
See Also:
  • Constructor Details

    • PIALoginPanel

      public PIALoginPanel(PInfranetApplet app)
      Creates the login panel. An image can be displayed in the background for branding purposes.
      Parameters:
      app - The Applet instance containing this panel
    • PIALoginPanel

      public PIALoginPanel(PClientServices srv)
      Creates the Customer Center login panel. An image can be displayed in the background for branding purposes. This is the API to call if you're running as an application.
      Parameters:
      srv - The PClientServices instance; There is no PApplication object, so we need to get this object somewhere.
  • Method Details

    • setConnectionInfoVisible

      public void setConnectionInfoVisible(boolean b)
      Call this to determine if the connection information is visible when this panel first appears. By default, it is not.
      Parameters:
      b - If true, display the connection info fields; if false the user must select the button to open up this hidden section.
    • addChangeListener

      public void addChangeListener(ChangeListener l)
      Add a listener that will be called once a connection is established
      Parameters:
      l - The ChangeListener that gets invoked once a successful connection has been established.
    • removeChangeListener

      public void removeChangeListener(ChangeListener l)
      Remove the listener that was called when a connection was established
      Parameters:
      l - The ChangeListener to remove
    • dontExitOnCancel

      public void dontExitOnCancel(Boolean b)
      Turn off exiting on CancelButton
      Parameters:
      b - Specify if exiting should be turned on or off
    • getCommandButtons

      public JPanel getCommandButtons()
      Retrieves the buttons along the bottom of the UI (connection info, login, cancel) as a panel. Also removes the buttons from the UI of this panel, as it is assumed the caller will be placing them elsewhere.
      Returns:
      The panel of buttons
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class JComponent
    • focusGained

      public void focusGained(FocusEvent e)
      Invoked when a component gains the keyboard focus.
      Specified by:
      focusGained in interface FocusListener
      Parameters:
      event - The focus event
    • focusLost

      public void focusLost(FocusEvent e)
      Invoked when a component loses the keyboard focus.
      Specified by:
      focusLost in interface FocusListener
      Parameters:
      event - The focus event
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Called when the login button is pressed
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - The action event