Changeset 19200


Ignore:
Timestamp:
2009-04-22T16:38:40+12:00 (15 years ago)
Author:
oranfry
Message:

language and ant-installer changes for the installer pages about the admin pages

Location:
release-kits/shared/core
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/core/ant-installer/src/org/tp23/antinstaller/renderer/swing/CheckboxInputRenderer.java

    r14982 r19200  
    1919import java.awt.event.ActionListener;
    2020
     21import java.awt.FlowLayout;
     22import java.awt.GridLayout;
     23import java.awt.BorderLayout;
    2124import javax.swing.JLabel;
    2225import javax.swing.JPanel;
     26import java.awt.Dimension;
     27import java.awt.Insets;
     28import javax.swing.JTextField;
     29
    2330
    2431import org.tp23.antinstaller.input.CheckboxInput;
     
    7582    }
    7683    public int addSelf(JPanel content, GBCF cf,  int row, boolean overflow) {
    77         content.add(fieldLabel, cf.getCell(row, 0));
    78         content.add(checkBox, cf.getCell(row, 1));
     84        JPanel p;
     85
     86        //p = new JPanel(new FlowLayout(FlowLayout.LEFT));
     87        BorderLayout l = new BorderLayout();
     88        p = new JPanel(l);
     89        p.add( fieldLabel, BorderLayout.WEST );
     90        p.add( checkBox, BorderLayout.CENTER );
     91        content.add(p);
     92
     93        p = new JPanel();
     94        p.setMinimumSize( new Dimension(0,1) );
     95        content.add(p);
     96        return ++row;
     97/*
     98        JPanel p = new JPanel();
     99        p.add(fieldLabel);
     100        p.add(checkBox);
    79101        if(overflow){
    80102            checkBox.setOverflow(SizeConstants.OVERFLOW_FIELD_SIZE);
    81103        }
    82         return ++row;
     104        content.add(p);
     105
     106*/
    83107    }
    84108
  • release-kits/shared/core/ant-installer/src/org/tp23/antinstaller/renderer/swing/ValidatedTextInputRenderer.java

    r17514 r19200  
    2323import java.util.ResourceBundle;
    2424
     25import java.awt.Dimension;
     26import java.awt.Insets;
    2527import javax.swing.JPanel;
    2628import javax.swing.JTextField;
     29import java.awt.FlowLayout;
     30import java.awt.GridLayout;
     31import java.awt.BorderLayout;
     32
    2733
    2834import org.tp23.antinstaller.input.OutputField;
     
    8894
    8995    public int addSelf(JPanel content, GBCF cf, int row, boolean overflow) {
    90         content.add(fieldLabel, cf.getCell(row, 0));
    91         content.add(jTextField, cf.getCell(row, 1));
    92         if (overflow) {
    93             ((AITextfield) jTextField).setOverflow(SizeConstants.OVERFLOW_FIELD_SIZE);
    94         }
    95         return ++row;
     96
     97        JPanel p;
     98
     99        //p = new JPanel(new FlowLayout(FlowLayout.LEFT));
     100        BorderLayout l = new BorderLayout();
     101        p = new JPanel(l);
     102        p.add( fieldLabel, BorderLayout.WEST );
     103        p.add( jTextField, BorderLayout.CENTER );
     104        content.add(p);
     105
     106        p = new JPanel();
     107        p.setMinimumSize( new Dimension(0,1) );
     108        content.add(p);
     109
     110        return ++row;
    96111    }
    97112
     
    101116    public void renderError() {
    102117        MessageRenderer mr = ctx.getMessageRenderer();
    103         mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("notCorrectFormat") + "\n\n e.g. "
    104                 + inputField.getDefaultValue());
     118        mr.printMessage( org.tp23.antinstaller.Installer.langPack.getString("notCorrectFormat") );
    105119        this.jTextField.requestFocus();
    106120        this.jTextField.setForeground(Color.red);
  • release-kits/shared/core/language-strings/LanguagePack.properties

    r18877 r19200  
    9292
    9393### Admin password page
    94 page.admin-password.displayText = Please set the Admin Password
     94
     95
     96page.admin-pages.displayText = Administrations Pages
     97admin-expl.displayText = The administration pages of the Greenstone interface allow you to manage the users database, which required if you wish to set up remote greenstone. They also provide an easy way to view log files and to edit the file 'main.cfg'.
     98admin-expl-2.displayText = Do you wish to the enable the administration pages of Greenstone? (You will be asked for a password on the next page.)
     99admin-expl-3.displayText = NOTE: If you enable the administration pages, they may be accessible over the internet. Please choose a secure password to protect them.
     100enable.admin.pages.displayText = Enable Admin Pages
     101
     102page.admin-password.displayText = Admin Password
     103admin-password-expl.displayText =  A user with the username 'admin' will be created for you with the password you provide. Please enter the admin password. The password must be between 3 and 20 characters long.
    95104admin.password.displayText = Admin Password
    96 admin-password-expl.displayText = In order to access certain parts of the Greenstone interface you need a password. A user with the username 'admin' will be created for you with the password you provide. The password must be between 3 and 20 characters long.
     105
     106
     107
    97108
    98109### Tomcat config page
Note: See TracChangeset for help on using the changeset viewer.