Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chatroomslist.createforms.CreateChatRoomWizardPage2
All Implemented Interfaces:
WizardPage

public class CreateChatRoomWizardPage2
extends Object
implements WizardPage

The CreateChatRoomWizardPage2 is the second page of the "Create chat room" wizard. Contains the ChatRoomNamePanel, where the user should enter the name of the chat room.

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
CreateChatRoomWizardPage2(WizardContainer wizard, NewChatRoom newChatRoom)
          Creates an instance of CreateChatRoomWizardPage2.
 
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()
          Implements the WizardPanelDescriptor method to return the identifier of this page.
 Object getNextPageIdentifier()
          Implements the WizardPanelDescriptor method to return 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()
          Before finishing the wizard sets the identifier entered by the user to the NewChatRoom 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.
 
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

CreateChatRoomWizardPage2

public CreateChatRoomWizardPage2(WizardContainer wizard,
                                 NewChatRoom newChatRoom)
Creates an instance of CreateChatRoomWizardPage2.

Parameters:
wizard - the parent wizard container
newChatRoom - the object that collects all information for the chat room, collected throughout 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 NewChatRoom object.

Specified by:
pageHiding in interface WizardPage

getIdentifier

public Object getIdentifier()
Implements the WizardPanelDescriptor method to return the identifier of this page.

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

getWizardForm

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

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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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