public class JWizardDialog extends BasicDialog
CHART, DEFAULT, LARGE, MAP_SIZE, MEDIUM, SMALL, TOOLBAR_SIZE, UPDATE_ONLINE_SIZE
CANCEL_BUTTON, OK_BUTTON
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
限定符 | 构造器和说明 |
---|---|
protected |
JWizardDialog(java.awt.Dialog owner) |
protected |
JWizardDialog(java.awt.Frame owner) |
限定符和类型 | 方法和说明 |
---|---|
void |
addWizardPanel(JWizardPanel panel)
Add a panel representing a step in the wizard.
|
void |
applyButtonStates()
Set the sensitivity of each button based on the back and next step
values.
|
protected void |
back()
Called when the Back button is pressed.
|
protected void |
cancel()
Called when the Cancel button is pressed.
|
void |
checkValid()
检测结果是否合法
|
void |
disableCancelAtEnd()
If this method is called, the Cancel button is disabled when on the
last step.
|
protected void |
finish()
Called when the Finish button is pressed.
|
int |
getCurrentStep()
Returns the current step being displayed by the wizard.
|
protected JWizardPanel |
getCurrentWizard()
Get the currentWizard Pane
|
int |
getLastStep()
Returns the last step displayed by the wizard.
|
protected void |
goTo(int step)
Display the JWizardPanel with the given step number.
|
protected void |
initComponents()
Initialize the JWizardDialog.
|
protected void |
next()
Called when the Next button is pressed.
|
void |
setEarlyFinish()
If this method is called, the Finish button is enabled immediately.
|
void |
setWizardIcon(javax.swing.Icon icon)
Add an image which displays on the left side of the wizard.
|
static JWizardDialog |
showWindow(java.awt.Window window)
Shows dialog
|
protected int |
switchToStep(int currentIndex,
int newIndex)
This method is called just prior to switching from one step to
another (after any next() or back() method is called).
|
setBasicDialogSize, setBasicDialogSize, setSize, setSize
addCustomButton, addDialogActionListener, applyClosingAction, applyEscapeAction, clearDialogActionListeners, dialogExit, doCancel, doOK, setButtonEnabled, setDoOKSucceed
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, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, 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, 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
protected JWizardDialog(java.awt.Frame owner)
protected JWizardDialog(java.awt.Dialog owner)
public static JWizardDialog showWindow(java.awt.Window window)
protected void initComponents()
public void setWizardIcon(javax.swing.Icon icon)
icon
- The icon representing the image to display. If null, no
image is displayed.public void addWizardPanel(JWizardPanel panel)
panel
- The JWizardPanel to addpublic void setEarlyFinish()
public void disableCancelAtEnd()
public int getCurrentStep()
public int getLastStep()
public void applyButtonStates()
protected void goTo(int step)
step
- The step number of the JWizardPanel to display.switchToStep(int,int)
protected void back()
JWizardPanel.back()
protected void next()
JWizardPanel.next()
protected void finish()
protected void cancel()
protected int switchToStep(int currentIndex, int newIndex)
currentIndex
- The index of the current JWizardPanel.newIndex
- The index of the JWizardPanel we are about to display.protected JWizardPanel getCurrentWizard()
public void checkValid() throws java.lang.Exception
UIDialog
checkValid
在类中 UIDialog
java.lang.Exception