Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chatroomslist.createforms
Class CreateChatRoomWizardPage1

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chatroomslist.createforms.CreateChatRoomWizardPage1
All Implemented Interfaces:
EventListener, CellEditorListener, WizardPage

public class CreateChatRoomWizardPage1
extends Object
implements WizardPage, CellEditorListener

The CreateChatRoomWizardPage1 is the first page of the "Create chat room" wizard. Contains the SelectAccountPanel, where the user should select the account, for which the new chat room will be created.

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
CreateChatRoomWizardPage1(WizardContainer wizard, NewChatRoom newChatRoom, Iterator<ProtocolProviderService> protocolProvidersList)
          Creates an instance of CreateChatRoomWizardPage1.
 
Method Summary
 void commitPage()
          Invoked when user clicks on the "Next" wizard button.
 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()
          Returns the identifier of the back wizard page.
 Object getIdentifier()
          Returns the identifier of this wizard page.
 Object getNextPageIdentifier()
          Returns the identifier of the next wizard page.
 Object getWizardForm()
          Returns the form contained in this wizard 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

CreateChatRoomWizardPage1

public CreateChatRoomWizardPage1(WizardContainer wizard,
                                 NewChatRoom newChatRoom,
                                 Iterator<ProtocolProviderService> protocolProvidersList)
Creates an instance of CreateChatRoomWizardPage1.

Parameters:
wizard - the parent wizard container
newChatRoom - the object that will collect the information through the wizard
protocolProvidersList - The list of available ProtocolProviderServices, from which the user could select.
Method Detail

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()
Returns the identifier of this wizard page.

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

getNextPageIdentifier

public Object getNextPageIdentifier()
Returns 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()
Returns the identifier of the back wizard page.

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

getWizardForm

public Object getWizardForm()
Returns the form contained in this wizard page. In this case

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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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