SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.contactlist.addcontact
Class AddContactWizardPage3

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.contactlist.addcontact.AddContactWizardPage3
All Implemented Interfaces:
WizardPage

public class AddContactWizardPage3
extends Object
implements WizardPage

The AddContactWizardPage3 is the last page of the "Add Contact" wizard. Contains the AddContactPanel, where the user should enter the identifier of the contact to add.

Author:
Yana Stamcheva

Field Summary
static String IDENTIFIER
           
 
Fields inherited from interface net.java.sip.communicator.service.gui.WizardPage
DEFAULT_PAGE_IDENTIFIER, FINISH_PAGE_IDENTIFIER, SUMMARY_PAGE_IDENTIFIER
 
Constructor Summary
AddContactWizardPage3(Wizard wizard, NewContact newContact)
          Creates an instance of AddContactWizardPage3.
AddContactWizardPage3(Wizard wizard, NewContact newContact, String contactAddress)
          Creates an instance of AddContactWizardPage3.
 
Method Summary
 void commitPage()
          Invoked when user clicks on the "Next" wizard button.
 Object getBackPageIdentifier()
          Implements the WizardPanelDescriptor method to return the identifier of the previous wizard page.
 Object getIdentifier()
          Returns the identifier of this WizardPage.
 Object getNextPageIdentifier()
          Implements the WizardPanelDescriptor method to return the identifier of the next wizard page.
 Object getWizardForm()
          Returns the user interface form represented by this page.
 void pageBack()
          Invoked when user clicks on the "Back" wizard button.
 void pageHiding()
          Before finishing the wizard sets the identifier entered by the user to the NewContact object.
 void pageShowing()
          Invoked when this WizardPage will be shown eighter because the user has clicked "Back" on the next wizard page or "Next" on the previous one.
 void pageShown()
          Invoked when this WizardPage is shown to the user and has become the current wizard page.
 void setBackPageIdentifier(String identifier)
          Changes the back page for the current wizard page.
 void setUIN(String uin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final String IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

AddContactWizardPage3

public AddContactWizardPage3(Wizard wizard,
                             NewContact newContact,
                             String contactAddress)
Creates an instance of AddContactWizardPage3.

Parameters:
wizard - the parent wizard
newContact - An object that collects all user choices through the wizard.
contactAddress - the address of the contact to add

AddContactWizardPage3

public AddContactWizardPage3(Wizard wizard,
                             NewContact newContact)
Creates an instance of AddContactWizardPage3.

Parameters:
wizard - the parent wizard
newContact - An object that collects all user choices through the wizard.
Method Detail

getNextPageIdentifier

public Object getNextPageIdentifier()
Implements the WizardPanelDescriptor method to return the identifier of the next wizard page.

Specified by:
getNextPageIdentifier in interface WizardPage
Returns:
the identifier of the next wizard page

getBackPageIdentifier

public Object getBackPageIdentifier()
Implements the WizardPanelDescriptor method to return the identifier of the previous wizard page.

Specified by:
getBackPageIdentifier in interface WizardPage
Returns:
the identifier of the prevoious wizard page

pageHiding

public void pageHiding()
Before finishing the wizard sets the identifier entered by the user to the NewContact object.

Specified by:
pageHiding in interface WizardPage

getIdentifier

public Object getIdentifier()
Description copied from interface: WizardPage
Returns the identifier of this WizardPage.

Specified by:
getIdentifier in interface WizardPage
Returns:
the identifier of this WizardPage

getWizardForm

public Object getWizardForm()
Description copied from interface: WizardPage
Returns the user interface form represented by this page. The form should be developed by using a library that is supported from current UI Service implementation. For example if the current UI Service implementation is made usind Java Swing, this method should return a java.awt.Component to be added properly in the WizardContainer implemented in UI Service implementation.

Specified by:
getWizardForm in interface WizardPage
Returns:
the user interface form represented by this page

pageShown

public void pageShown()
Description copied from interface: WizardPage
Invoked when this WizardPage is shown to the user and has become the current wizard page. This method should be invoked from the WizardContainer implementation just after this page is shown to the user.

You should add here all operations you need to be executed when this WizardPage is shown.

Specified by:
pageShown in interface WizardPage

pageShowing

public void pageShowing()
Description copied from interface: WizardPage
Invoked when this WizardPage will be shown eighter because the user has clicked "Back" on the next wizard page or "Next" on the previous one. This method should be invoked from the WizardContainer implementation just before this page is shown to the user.

You should add here all operations you need to be executed when this WizardPage is about to be shown.

Specified by:
pageShowing in interface WizardPage

commitPage

public void commitPage()
Description copied from interface: WizardPage
Invoked when user clicks on the "Next" wizard button. You should add here all operations you need to be executed when user clicks "Next" on this WizardPage.

Specified by:
commitPage in interface WizardPage

pageBack

public void pageBack()
Description copied from interface: WizardPage
Invoked when user clicks on the "Back" wizard button. You should add here all operations you need to be executed when user clicks "Back" on this WizardPage.

Specified by:
pageBack in interface WizardPage

setUIN

public void setUIN(String uin)

setBackPageIdentifier

public void setBackPageIdentifier(String identifier)
Changes the back page for the current wizard page.

Parameters:
identifier - the new back page identifier.

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.