Changeset 10581


Ignore:
Timestamp:
2005-08-30T10:49:17+12:00 (19 years ago)
Author:
mdewsnip
Message:

Moved the call to getRequestingPrompt out to a new function, so it can be overridden.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/GAuthenticator.java

    r8811 r10581  
    8181    dialog.setSize(SIZE);
    8282    JPanel content_pane = (JPanel) dialog.getContentPane();
    83     JLabel title_label = new JLabel(getRequestingPrompt());
     83    JLabel title_label = new JLabel(getMessageString());
    8484    JPanel user_panel = new JPanel();
    8585    JLabel username_label = new JLabel();
     
    141141
    142142
     143    /** This is defined so it can be overridden by subclasses (getRequestingPrompt is final). */
     144    protected String getMessageString()
     145    {
     146    return getRequestingPrompt();
     147    }
     148
     149
    143150    /** Detects actions upon any control that attempt to submit the current details for authentication. */
    144151    private class AuthenticationActionListener
Note: See TracChangeset for help on using the changeset viewer.