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

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

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.contactlist.addcontact.AddContactWizardPage2
All Implemented Interfaces:
EventListener, CellEditorListener, WizardPage

public class AddContactWizardPage2
extends Object
implements WizardPage, CellEditorListener

The AddContactWizardPage2 is the second page of the "Add Contact" wizard. Contains the SelectGroupPanel, where the user should select the group, where the new contact will be added.

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
AddContactWizardPage2(AddContactWizard wizard, NewContact newContact)
          Creates an instance of AddContactWizardPage2.
 
Method Summary
 void commitPage()
          Invoked when user clicks on the "Next" wizard button.
 int countGroups()
          The number of groups.
 void editingCanceled(ChangeEvent e)
          When user canceled editing the next button is enabled or disabled depending on if the user has selected a check box or not.
 void editingStopped(ChangeEvent e)
          When user stopped editing the next button is enabled or disabled depending on if the user has selected a check box or not.
 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()
          Invoked when this WizardPage will be hidden eighter because the user has clicked "Back" or "Next".
 void pageShowing()
          Before the panel is displayed checks the selections and enables the next button if a checkbox is already selected or disables it if nothing is selected.
 void pageShown()
          Invoked when this WizardPage is shown to the user and has become the current wizard page.
 
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

AddContactWizardPage2

public AddContactWizardPage2(AddContactWizard wizard,
                             NewContact newContact)
Creates an instance of AddContactWizardPage2.

Parameters:
wizard - the parent wizard, where this page is contained
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

pageShowing

public void pageShowing()
Before the panel is displayed checks the selections and enables the next button if a checkbox is already selected or disables it if nothing is selected.

Specified by:
pageShowing in interface WizardPage

editingCanceled

public void editingCanceled(ChangeEvent e)
When user canceled editing the next button is enabled or disabled depending on if the user has selected a check box or not.

Specified by:
editingCanceled in interface CellEditorListener

editingStopped

public void editingStopped(ChangeEvent e)
When user stopped editing the next button is enabled or disabled depending on if the user has selected a check box or not.

Specified by:
editingStopped in interface CellEditorListener

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

pageHiding

public void pageHiding()
Description copied from interface: WizardPage
Invoked when this WizardPage will be hidden eighter because the user has clicked "Back" or "Next". This method should be invoked from the WizardContainer implementation just before this page is hidden when replacing it with the previous or the next one.

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

Specified by:
pageHiding in interface WizardPage

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

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

countGroups

public int countGroups()
The number of groups.

Returns:
The number of available groups.

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

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