public class FirstWizardPage extends TransparentPanel implements WizardPage, javax.swing.event.DocumentListener, java.awt.event.ActionListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIRST_PAGE_IDENTIFIER
The identifier of this wizard page.
|
static java.lang.String |
SERVER_EXAMPLE
Example of IRC server name.
|
static java.lang.String |
USER_NAME_EXAMPLE
Example of IRC nick name.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEFAULT_PAGE_IDENTIFIER, FINISH_PAGE_IDENTIFIER, SUMMARY_PAGE_IDENTIFIER
Constructor and Description |
---|
FirstWizardPage(IrcAccountRegistrationWizard wizard,
java.lang.String userId,
java.lang.String server)
Creates an instance of FirstWizardPage.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Indicates when the default port check box and the passwordNotRequired
check box are selected.
|
void |
changedUpdate(javax.swing.event.DocumentEvent event) |
void |
commitPage()
Saves the user input when the "Next" wizard buttons is clicked.
|
java.lang.Object |
getBackPageIdentifier()
Implements the
WizardPage.getBackPageIdentifier to return
the back identifier. |
java.lang.String |
getCurrentServer() |
java.lang.String |
getCurrentUserId() |
java.lang.Object |
getIdentifier()
Implements the
WizardPage.getIdentifier to return
this page identifier. |
java.lang.Object |
getNextPageIdentifier()
Implements the
WizardPage.getNextPageIdentifier to return
the next page identifier - the summary page. |
java.lang.Object |
getSimpleForm() |
java.lang.Object |
getWizardForm()
Implements the
WizardPage.getWizardForm to return
this panel. |
void |
insertUpdate(javax.swing.event.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(javax.swing.event.DocumentEvent event)
Handles the DocumentEvent triggered when user deletes letters
from the UserID field.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String FIRST_PAGE_IDENTIFIER
public static final java.lang.String USER_NAME_EXAMPLE
public static final java.lang.String SERVER_EXAMPLE
public FirstWizardPage(IrcAccountRegistrationWizard wizard, java.lang.String userId, java.lang.String server)
wizard
- the parent wizardpublic java.lang.Object getIdentifier()
WizardPage.getIdentifier
to return
this page identifier.getIdentifier
in interface WizardPage
public java.lang.Object getNextPageIdentifier()
WizardPage.getNextPageIdentifier
to return
the next page identifier - the summary page.getNextPageIdentifier
in interface WizardPage
public java.lang.Object getBackPageIdentifier()
WizardPage.getBackPageIdentifier
to return
the back identifier. In this case it's null because this is the first
wizard page.getBackPageIdentifier
in interface WizardPage
public java.lang.Object getWizardForm()
WizardPage.getWizardForm
to return
this panel.getWizardForm
in interface WizardPage
public void pageShowing()
pageShowing
in interface WizardPage
public void commitPage()
commitPage
in interface WizardPage
public void insertUpdate(javax.swing.event.DocumentEvent event)
insertUpdate
in interface javax.swing.event.DocumentListener
event
- the event containing the update.public void removeUpdate(javax.swing.event.DocumentEvent event)
removeUpdate
in interface javax.swing.event.DocumentListener
event
- the event containing the update.public void loadAccount(ProtocolProviderService protocolProvider)
protocolProvider
- The ProtocolProviderService to load the
data from.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void changedUpdate(javax.swing.event.DocumentEvent event)
changedUpdate
in interface javax.swing.event.DocumentListener
public void pageHiding()
WizardPage
You should add here all operations you need to be executed when this WizardPage is about to be hidden.
pageHiding
in interface WizardPage
public void pageShown()
WizardPage
You should add here all operations you need to be executed when this WizardPage is shown.
pageShown
in interface WizardPage
public void pageBack()
WizardPage
pageBack
in interface WizardPage
public java.lang.Object getSimpleForm()
public boolean isCommitted()
public java.lang.String getCurrentUserId()
public java.lang.String getCurrentServer()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.