net.java.sip.communicator.plugin.aimaccregwizz
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.aimaccregwizz.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 uin
and the password of the account.
- Author:
- Yana Stamcheva
- See Also:
- Serialized Form
|
Method Summary |
void |
actionPerformed(ActionEvent e)
|
void |
changedUpdate(DocumentEvent e)
|
void |
commitPage()
Saves the user input when the "Next" wizard buttons is clicked. |
Object |
getBackPageIdentifier()
Implements the WizardPage.getBackPageIdentifier to return
the back identifier, which is null as this is the first wizard page. |
Object |
getIdentifier()
Implements the WizardPage.getIdentifier to return this
page identifier. |
Object |
getNextPageIdentifier()
Implements the WizardPage.getNextPageIdentifier to return
the next identifier - the summary page. |
Object |
getSimpleForm()
The simple form for this wizard. |
Object |
getWizardForm()
Implements the WizardPage.getWizardForm to return this
panel. |
void |
insertUpdate(DocumentEvent e)
Handles the DocumentEvent triggered when user types in the UIN
field. |
boolean |
isCommitted()
Whether is committed. |
void |
loadAccount(ProtocolProviderService protocolProvider)
Fills the UIN 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 UIN field is empty. |
void |
pageShown()
Invoked when this WizardPage is shown to the user and has
become the current wizard page. |
void |
removeUpdate(DocumentEvent e)
Handles the DocumentEvent triggered when user deletes letters
from the UIN 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 first page identifier.
- See Also:
- Constant Field Values
USER_NAME_EXAMPLE
public static final String USER_NAME_EXAMPLE
- The user name example.
- See Also:
- Constant Field Values
FirstWizardPage
public FirstWizardPage(AimAccountRegistrationWizard 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 this WizardPage
getNextPageIdentifier
public Object getNextPageIdentifier()
- Implements the
WizardPage.getNextPageIdentifier to return
the next identifier - the summary page.
- Specified by:
getNextPageIdentifier in interface WizardPage
- Returns:
- the identifier of the next wizard page
getBackPageIdentifier
public Object getBackPageIdentifier()
- Implements the
WizardPage.getBackPageIdentifier to return
the back identifier, which is null as this is the first wizard page.
- Specified by:
getBackPageIdentifier in interface WizardPage
- Returns:
- the identifier of the previous page
getWizardForm
public Object getWizardForm()
- Implements the
WizardPage.getWizardForm to return this
panel.
- Specified by:
getWizardForm in interface WizardPage
- Returns:
- the advanced wizard form
pageShowing
public void pageShowing()
- Before this page is displayed enables or disables the "Next" wizard
button according to whether the UIN 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 e)
- Handles the DocumentEvent triggered when user types in the UIN
field. Enables or disables the "Next" wizard button according to whether
the UIN field is empty.
- Specified by:
insertUpdate in interface DocumentListener
removeUpdate
public void removeUpdate(DocumentEvent e)
- Handles the DocumentEvent triggered when user deletes letters
from the UIN field. Enables or disables the "Next" wizard button
according to whether the UIN field is empty.
- Specified by:
removeUpdate in interface DocumentListener
changedUpdate
public void changedUpdate(DocumentEvent e)
- 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
loadAccount
public void loadAccount(ProtocolProviderService protocolProvider)
- Fills the UIN 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 e)
- Specified by:
actionPerformed in interface ActionListener
getSimpleForm
public Object getSimpleForm()
- The simple form for this wizard.
- Returns:
- the simple form for this wizard.
isCommitted
public boolean isCommitted()
- Whether is committed.
- Returns:
- true if the form is committed, false
otherwise
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.