public class Wizard extends SIPCommDialog implements java.awt.event.WindowListener, WizardContainer, java.beans.PropertyChangeListener
SIPCommDialog.DialogWindowAdapter
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BACK_BUTTON_ACTION_COMMAND
The String-based action command for the 'Back' button.
|
static java.lang.String |
CANCEL_BUTTON_ACTION_COMMAND
The String-based action command for the 'Cancel' button.
|
static int |
CANCEL_RETURN_CODE
Indicates that the 'Cancel' button was pressed to close the dialog, or
the user pressed the close box in the corner of the window.
|
protected TransparentPanel |
cardPanel |
static int |
ERROR_RETURN_CODE
Indicates that the dialog closed due to an internal error.
|
static int |
FINISH_RETURN_CODE
Indicates that the 'Finish' button was pressed to close the dialog.
|
static java.lang.String |
NEXT_BUTTON_ACTION_COMMAND
The String-based action command for the 'Next' button.
|
(package private) org.jitsi.service.resources.ResourceManagementService |
resources
The i18n text used for the buttons.
|
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
Wizard(java.awt.Dialog owner)
This method accepts a java.awt.Dialog object as the javax.swing.JDialog's
parent.
|
Wizard(java.awt.Frame owner)
This method accepts a java.awt.Frame object as the javax.swing.JDialog's
parent.
|
Modifier and Type | Method and Description |
---|---|
void |
addWizardListener(WizardListener l) |
protected void |
close(boolean isEscaped)
Implements the SIPCommDialog close method.
|
(package private) void |
close(int code)
Closes the dialog and sets the return code to the integer parameter.
|
boolean |
containsPage(java.lang.Object id)
Checks whether a page with the given id exists in the wizard.
|
javax.swing.JButton |
getBackButton()
Returns the back wizard button.
|
java.lang.String |
getBackButtonDefaultText()
Returns the default text of the back wizard button.
|
java.lang.String |
getCancelButtonDefaultText()
Returns the default text of the cancel wizard button.
|
javax.swing.JDialog |
getDialog()
Returns an instance of the JDialog that this class created.This is useful
in the event that you want to change any of the JDialog parameters
manually.
|
java.lang.String |
getFinishButtonDefaultText()
Returns the default text of the finish wizard button.
|
WizardModel |
getModel()
Returns the current model of the wizard dialog.
|
javax.swing.JButton |
getNextButton()
Returns the next wizard button.
|
java.lang.String |
getNextButtonDefaultText()
Returns the default text of the next wizard button.
|
boolean |
isBackButtonEnabled()
Mirrors the WizardModel method of the same name.
|
boolean |
isCancelButtonEnabled()
Mirrors the WizardModel method of the same name.
|
boolean |
isNextFinishButtonEnabled()
Mirrors the WizardModel method of the same name.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Method used to listen for property change events from the model and
update the dialog's graphical components as necessary.
|
void |
refresh()
Refreshes this wizard dialog.
|
void |
registerWizardPage(java.lang.Object id,
WizardPage page)
Adds the given WizardPage in this wizard.
|
void |
removeWizardListener(WizardListener l) |
void |
removeWizzardIcon() |
(package private) void |
setBackButtonDefaultText(java.lang.String backButtonDefaultText)
Sets the back button default text.
|
void |
setBackButtonEnabled(boolean newValue)
Mirrors the WizardModel method of the same name.
|
(package private) void |
setCancelButtonDefaultText(java.lang.String cancelButtonDefaultText)
Sets the cancel button default text.
|
void |
setCancelButtonEnabled(boolean newValue)
Mirrors the WizardModel method of the same name.
|
void |
setCurrentPage(java.lang.Object id)
Displays the panel identified by the object passed in.
|
(package private) void |
setFinishButtonDefaultText(java.lang.String finishButtonDefaultText)
Sets the finish button default text.
|
void |
setFinishButtonText(java.lang.String text)
Sets the text label of the "Finish" wizard button.
|
(package private) void |
setNextButtonDefaultText(java.lang.String nextButtonDefaultText)
Sets the next button default text.
|
void |
setNextFinishButtonEnabled(boolean newValue)
Mirrors the WizardModel method of the same name.
|
void |
setWizzardIcon(java.awt.image.BufferedImage wizardIcon) |
void |
showDialog(boolean modal)
Convenience method that displays a modal wizard dialog and blocks until
the dialog has completed.
|
(package private) void |
startCommittingPage()
Changes cursor and status label, informing user we are in process
of connecting.
|
(package private) void |
stopCommittingPage()
Changes cursor and status label, informing user we finished the process
of connecting.
|
void |
unregisterWizardPage(java.lang.Object id)
Removes from the wizard the WizardPage corresponding to the
given identifier.
|
void |
windowActivated(java.awt.event.WindowEvent e) |
void |
windowClosed(java.awt.event.WindowEvent e) |
void |
windowClosing(java.awt.event.WindowEvent e)
If the user presses the close box on the dialog's window, treat it as a
cancel.
|
void |
windowDeactivated(java.awt.event.WindowEvent e) |
void |
windowDeiconified(java.awt.event.WindowEvent e) |
void |
windowIconified(java.awt.event.WindowEvent e) |
void |
windowOpened(java.awt.event.WindowEvent e) |
addKeyBinding, dispose, setVisible
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int FINISH_RETURN_CODE
public static final int CANCEL_RETURN_CODE
public static final int ERROR_RETURN_CODE
public static final java.lang.String NEXT_BUTTON_ACTION_COMMAND
public static final java.lang.String BACK_BUTTON_ACTION_COMMAND
public static final java.lang.String CANCEL_BUTTON_ACTION_COMMAND
org.jitsi.service.resources.ResourceManagementService resources
protected TransparentPanel cardPanel
public Wizard(java.awt.Dialog owner)
owner
- The java.awt.Dialog object that is the owner of this dialog.public Wizard(java.awt.Frame owner)
owner
- The java.awt.Frame object that is the owner of the
javax.swing.JDialog.public javax.swing.JDialog getDialog()
public void showDialog(boolean modal)
modal
- whether to show a modal dialogpublic WizardModel getModel()
public void registerWizardPage(java.lang.Object id, WizardPage page)
id
- An Object-based identifier used to identify the WizardPage
objectpage
- The WizardPage object to register in this wizardpublic void unregisterWizardPage(java.lang.Object id)
id
- The identifier of the wizard page.public boolean containsPage(java.lang.Object id)
id
- the identifier of the searched pagepublic void setCurrentPage(java.lang.Object id)
id
- The Object-based identifier of the panel to be displayed.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- PropertyChangeEvent passed from the model to signal that one
of its properties has changed value.public boolean isBackButtonEnabled()
isBackButtonEnabled
in interface WizardContainer
public void setBackButtonEnabled(boolean newValue)
setBackButtonEnabled
in interface WizardContainer
newValue
- The new enabled status of the button.public boolean isNextFinishButtonEnabled()
isNextFinishButtonEnabled
in interface WizardContainer
public void setNextFinishButtonEnabled(boolean newValue)
setNextFinishButtonEnabled
in interface WizardContainer
newValue
- The new enabled status of the button.public boolean isCancelButtonEnabled()
isCancelButtonEnabled
in interface WizardContainer
public void setCancelButtonEnabled(boolean newValue)
setCancelButtonEnabled
in interface WizardContainer
newValue
- The new enabled status of the button.void close(int code)
code
- The return code.public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- The event passed in from AWT.public void setWizzardIcon(java.awt.image.BufferedImage wizardIcon)
public void removeWizzardIcon()
public void addWizardListener(WizardListener l)
public void removeWizardListener(WizardListener l)
protected void close(boolean isEscaped)
close
in class SIPCommDialog
isEscaped
- true if this frame has been closed by pressing
the Esc key; otherwise, falsepublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public javax.swing.JButton getNextButton()
public javax.swing.JButton getBackButton()
public void refresh()
refresh
in interface WizardContainer
public java.lang.String getBackButtonDefaultText()
void setBackButtonDefaultText(java.lang.String backButtonDefaultText)
backButtonDefaultText
- the text to setpublic java.lang.String getNextButtonDefaultText()
void setNextButtonDefaultText(java.lang.String nextButtonDefaultText)
nextButtonDefaultText
- the text to setpublic java.lang.String getFinishButtonDefaultText()
void setFinishButtonDefaultText(java.lang.String finishButtonDefaultText)
finishButtonDefaultText
- the text to setpublic java.lang.String getCancelButtonDefaultText()
void setCancelButtonDefaultText(java.lang.String cancelButtonDefaultText)
cancelButtonDefaultText
- the text to setpublic void setFinishButtonText(java.lang.String text)
setFinishButtonText
in interface WizardContainer
text
- the new label of the buttonvoid startCommittingPage()
void stopCommittingPage()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.