Configurable wizard "Finish" button. Account registration wizards have now a "Sign in" button.

cusax-fix
Yana Stamcheva 18 years ago
parent 9d562d9f32
commit c196604c2e

@ -14,4 +14,5 @@ proxyPort=Proxy port
proxyType=Proxy type
proxyUsername=Proxy username
proxyPassword=Proxy password
error=Error
error=Error
signin=Sign in

@ -5,4 +5,5 @@ password=Password:
rememberPassword=Remember password
userAndPassword=Identification
existingAccount=* The account you entered is already installed.
error=Error
error=Error
signin=Sign in

@ -14,4 +14,5 @@ proxyPort=Proxy port
proxyType=Proxy type
proxyUsername=Proxy username
proxyPassword=Proxy password
error=Error
error=Error
signin=Sign in

@ -13,4 +13,5 @@ userAndPassword=Identification
serverIRC=Server
options=Options
existingAccount=* The account you entered is already installed.
error=Error
error=Error
signin=Sign in

@ -30,4 +30,5 @@ userExist=This user already exist on this server. Choose another user or server.
unknownXmppError=Unknown XMPP error. Verify that the server name is correct.
notSamePassword=The two entered password aren't the same.
error=Error
error=Error
signin=Sign in

@ -5,4 +5,5 @@ password=Password:
rememberPassword=Remember password
uinAndPassword=ID and Password
existingAccount=* The account you entered is already installed.
error=Error
error=Error
signin=Sign in

@ -6,4 +6,5 @@ rssAccountInfo=This wizard will create an RSS account for you.\n\n\
Note that you could have only one RSS account!\n\n\
You can add RSS feeds to your contact list using the "Add contact" wizard. Fill in the contact address field with the URI of the RSS feed you would like to add.
rssAccountInfoTitle=RSS Account Information
rssAccountAttention=Please read attentively the information provided below!
rssAccountAttention=Please read attentively the information provided below!
activate=Activate

@ -26,4 +26,5 @@ keepAliveMethod=Keep alive method
keepAliveInterval=Keep alive interval
keepAliveIntervalEx=Between 1 and 3600 seconds
register=REGISTER
options=OPTIONS
options=OPTIONS
signin=Sign in

@ -4,4 +4,5 @@ accountID=Account ID:
identityFile=Identitity File:
knownHosts=Known Hosts:
accountDetails=SSH Account Details
existingAccount=* The account you entered is already installed.
existingAccount=* The account you entered is already installed.
signin=Sign in

@ -5,4 +5,5 @@ password=Password:
rememberPassword=Remember password
uinAndPassword=ID and Password
existingAccount=* The account you entered is already installed.
error=Error
error=Error
signin=Sign in

@ -6,4 +6,5 @@ password=Password:
rememberPassword=Remember password
userAndPassword=Identification
existingAccount=* A Bonjour account already exists. You can only install a single Bonjour account.
error=Error
error=Error
signin=Sign in

@ -621,4 +621,12 @@ public void refresh()
this.pack();
this.repaint();
}
/**
* Implements the <tt>WizardContainer.setFinishButtonText()</tt> method.
*/
public void setFinishButtonText(String text)
{
FINISH_TEXT = text;
}
}

@ -50,6 +50,8 @@ public CreateChatRoomWizard(MainFrame mainFrame)
this.setTitle(Messages.getI18NString("createChatRoomWizard").getText());
this.setFinishButtonText(Messages.getI18NString("create").getText());
page1 = new CreateChatRoomWizardPage1(this, newChatRoom,
mainFrame.getProtocolProviders());

@ -42,13 +42,15 @@ public class JoinChatRoomWizard
public JoinChatRoomWizard(MainFrame mainFrame)
{
super(mainFrame);
this.mainFrame = mainFrame;
super.addWizardListener(this);
this.setTitle(Messages.getI18NString("joinChatRoomWizard").getText());
this.setFinishButtonText(Messages.getI18NString("join").getText());
page1 = new JoinChatRoomWizardPage1(this, newChatRoom,
mainFrame.getProtocolProviders());

@ -43,13 +43,15 @@ public class AddContactWizard
public AddContactWizard(MainFrame mainFrame)
{
super(mainFrame);
this.mainFrame = mainFrame;
super.addWizardListener(this);
this.setTitle(Messages.getI18NString("addContactWizard").getText());
this.setFinishButtonText(Messages.getI18NString("addContact").getText());
Vector pps = new Vector();
Iterator iter = mainFrame.getProtocolProviders();
while (iter.hasNext())

@ -41,6 +41,8 @@ public class AimAccountRegistrationWizard
public AimAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -54,6 +54,8 @@ public class GibberishAccountRegistrationWizard
public GibberishAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -41,6 +41,8 @@ public class IcqAccountRegistrationWizard
public IcqAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -51,6 +51,8 @@ public class IrcAccountRegistrationWizard
public IrcAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -50,6 +50,8 @@ public class JabberAccountRegistrationWizard
public JabberAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -45,6 +45,8 @@ public class MsnAccountRegistrationWizard
public MsnAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -11,6 +11,7 @@
import org.osgi.framework.*;
import net.java.sip.communicator.impl.gui.customcontrols.*;
import net.java.sip.communicator.service.gui.*;
import net.java.sip.communicator.service.protocol.*;
@ -53,6 +54,9 @@ public class RssAccountRegistrationWizard
public RssAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer
.setFinishButtonText(Resources.getString("activate"));
}
/**

@ -47,8 +47,11 @@ public class SIPAccountRegistrationWizard
* @param wizardContainer the wizard container, where this wizard
* is added
*/
public SIPAccountRegistrationWizard(WizardContainer wizardContainer) {
public SIPAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -59,8 +59,11 @@ public class SSHAccountRegistrationWizard
* @param wizardContainer the wizard container, where this wizard
* is added
*/
public SSHAccountRegistrationWizard(WizardContainer wizardContainer) {
public SSHAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -46,6 +46,8 @@ public class YahooAccountRegistrationWizard
public YahooAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -55,6 +55,8 @@ public class ZeroconfAccountRegistrationWizard
public ZeroconfAccountRegistrationWizard(WizardContainer wizardContainer)
{
this.wizardContainer = wizardContainer;
this.wizardContainer.setFinishButtonText(Resources.getString("signin"));
}
/**

@ -58,7 +58,16 @@ public interface WizardContainer {
* disable it.
*/
public void setCancelButtonEnabled(boolean newValue);
/**
* Sets the text label of the "Finish" wizard button. The default value of
* the "Finish" button is still defined by the implementation of this
* <tt>WizardContainer</tt> interface, but calling this method would allow
* wizards to specify their own finish button.
* @param text the new label of the button
*/
public void setFinishButtonText(String text);
/**
* Refreshes the current content of this wizard container.
*/

Loading…
Cancel
Save