Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chatroomslist.joinforms
Class JoinChatRoomWizardPage1

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chatroomslist.joinforms.JoinChatRoomWizardPage1
All Implemented Interfaces:
EventListener, ListSelectionListener, WizardPage

public class JoinChatRoomWizardPage1
extends Object
implements WizardPage, ListSelectionListener

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
          The identifier of this wizard page.
 
Fields inherited from interface net.java.sip.communicator.service.gui.WizardPage
DEFAULT_PAGE_IDENTIFIER, FINISH_PAGE_IDENTIFIER, SUMMARY_PAGE_IDENTIFIER
 
Constructor Summary
JoinChatRoomWizardPage1(WizardContainer wizard, NewChatRoom joinChatRoom, Iterator<ChatRoomProviderWrapper> chatRoomProviders)
          Creates an instance of JoinChatRoomWizardPage1.
 
Method Summary
 void commitPage()
          Saves the selected account before going to the next page.
 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 check box 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.
 void valueChanged(ListSelectionEvent e)
          Listens for selection evens so that we would only enable the next button if an account has actually been chosen.
 
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
The identifier of this wizard page.

See Also:
Constant Field Values
Constructor Detail

JoinChatRoomWizardPage1

public JoinChatRoomWizardPage1(WizardContainer wizard,
                               NewChatRoom joinChatRoom,
                               Iterator<ChatRoomProviderWrapper> chatRoomProviders)
Creates an instance of JoinChatRoomWizardPage1.

Parameters:
wizard - the parent wizard container
joinChatRoom - the object that will collect the information through the wizard
chatRoomProviders - The list of available installed ChatRoomProviderWrapper, 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 check box is already selected or disables it if nothing is selected.

Specified by:
pageShowing in interface WizardPage

valueChanged

public void valueChanged(ListSelectionEvent e)
Listens for selection evens so that we would only enable the next button if an account has actually been chosen.

Specified by:
valueChanged in interface ListSelectionListener
Parameters:
e - the ListSelectionEvent that has just occurred.

getIdentifier

public Object getIdentifier()
Returns the identifier of this wizard page.

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

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 back wizard page

getWizardForm

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

Specified by:
getWizardForm in interface WizardPage
Returns:
the form contained in this wizard 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()
Saves the selected account before going to the next page.

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.