net.java.sip.communicator.plugin.ircaccregwizz
Class FirstWizardPage
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.java.sip.communicator.util.swing.TransparentPanel
net.java.sip.communicator.plugin.ircaccregwizz.FirstWizardPage
- All Implemented Interfaces:
- ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, WizardPage
public class FirstWizardPage
- extends TransparentPanel
- implements WizardPage, DocumentListener, ActionListener
The FirstWizardPage is the page, where user could enter the user ID
and the password of the account.
- Author:
- Lionel Ferreira & Michael Tarantino
- See Also:
- Serialized Form
|
Method Summary |
void |
actionPerformed(ActionEvent event)
Indicates when the default port check box and the passwordNotRequired
check box are selected. |
void |
changedUpdate(DocumentEvent event)
|
void |
commitPage()
Saves the user input when the "Next" wizard buttons is clicked. |
Object |
getBackPageIdentifier()
Implements the WizardPage.getBackPageIdentifier to return
the back identifier. |
Object |
getIdentifier()
Implements the WizardPage.getIdentifier to return
this page identifier. |
Object |
getNextPageIdentifier()
Implements the WizardPage.getNextPageIdentifier to return
the next page identifier - the summary page. |
Object |
getSimpleForm()
|
Object |
getWizardForm()
Implements the WizardPage.getWizardForm to return
this panel. |
void |
insertUpdate(DocumentEvent event)
Handles the DocumentEvent triggered when user types in the
User ID field. |
boolean |
isCommitted()
|
void |
loadAccount(ProtocolProviderService protocolProvider)
Fills the UserID and Password fields in this panel with the data coming
from the given protocolProvider. |
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 this page is displayed enables or disables the "Next" wizard
button according to whether the UserID field is empty. |
void |
pageShown()
Invoked when this WizardPage is shown to the user and has
become the current wizard page. |
void |
removeUpdate(DocumentEvent event)
Handles the DocumentEvent triggered when user deletes letters
from the UserID field. |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
FIRST_PAGE_IDENTIFIER
public static final String FIRST_PAGE_IDENTIFIER
- The identifier of this wizard page.
- See Also:
- Constant Field Values
USER_NAME_EXAMPLE
public static final String USER_NAME_EXAMPLE
- See Also:
- Constant Field Values
SERVER_EXAMPLE
public static final String SERVER_EXAMPLE
- See Also:
- Constant Field Values
FirstWizardPage
public FirstWizardPage(IrcAccountRegistrationWizard wizard)
- Creates an instance of FirstWizardPage.
- Parameters:
wizard - the parent wizard
getIdentifier
public Object getIdentifier()
- Implements the
WizardPage.getIdentifier to return
this page identifier.
- Specified by:
getIdentifier in interface WizardPage
- Returns:
- the Identifier of the first page in this wizard.
getNextPageIdentifier
public Object getNextPageIdentifier()
- Implements the
WizardPage.getNextPageIdentifier to return
the next page identifier - the summary page.
- Specified by:
getNextPageIdentifier in interface WizardPage
- Returns:
- the identifier of the page following this one.
getBackPageIdentifier
public Object getBackPageIdentifier()
- Implements the
WizardPage.getBackPageIdentifier to return
the back identifier. In this case it's null because this is the first
wizard page.
- Specified by:
getBackPageIdentifier in interface WizardPage
- Returns:
- the identifier of the previous wizard page
getWizardForm
public Object getWizardForm()
- Implements the
WizardPage.getWizardForm to return
this panel.
- Specified by:
getWizardForm in interface WizardPage
- Returns:
- the component to be displayed in this wizard page.
pageShowing
public void pageShowing()
- Before this page is displayed enables or disables the "Next" wizard
button according to whether the UserID field is empty.
- Specified by:
pageShowing in interface WizardPage
commitPage
public void commitPage()
- Saves the user input when the "Next" wizard buttons is clicked.
- Specified by:
commitPage in interface WizardPage
insertUpdate
public void insertUpdate(DocumentEvent event)
- Handles the DocumentEvent triggered when user types in the
User ID field. Enables or disables the "Next" wizard button according to
whether the User ID field is empty.
- Specified by:
insertUpdate in interface DocumentListener
- Parameters:
event - the event containing the update.
removeUpdate
public void removeUpdate(DocumentEvent event)
- Handles the DocumentEvent triggered when user deletes letters
from the UserID field. Enables or disables the "Next" wizard button
according to whether the UserID field is empty.
- Specified by:
removeUpdate in interface DocumentListener
- Parameters:
event - the event containing the update.
loadAccount
public void loadAccount(ProtocolProviderService protocolProvider)
- Fills the UserID and Password fields in this panel with the data coming
from the given protocolProvider.
- Parameters:
protocolProvider - The ProtocolProviderService to load the
data from.
actionPerformed
public void actionPerformed(ActionEvent event)
- Indicates when the default port check box and the passwordNotRequired
check box are selected.
- Specified by:
actionPerformed in interface ActionListener
changedUpdate
public void changedUpdate(DocumentEvent event)
- Specified by:
changedUpdate in interface DocumentListener
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
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
getSimpleForm
public Object getSimpleForm()
isCommitted
public boolean isCommitted()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.