All Packages Class Hierarchy This Package Previous Next Index
Class com.netobjects.nfx.wizard.WizardView
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----com.sun.java.swing.JDialog
|
+----com.netobjects.nfc.api.NFXJDialog
|
+----com.netobjects.nfx.wizard.WizardView
- public class WizardView
- extends NFXJDialog
- implements ActionListener
This class is the view corrisponding to the wizard class
which is the model portion. It takes care
of creation, display and layout of UI controls etc...
The controller is replaced by the java Observable/Observer
mechanism.
The purpose for the model-view-controller approach
is not just that it is good design practice but that
we want the ability to load page objects into the
wizard without initially creating all the expensive
and numerous Swing UI controls. If the user gets
only a couple of pages into the wizard and hits
'finish', all subsequent view pages will never get
created.
- Version:
- 1.0
- Author:
- Scott Cinnamond
-
dmBtnBack
-
-
dmBtnCancel
-
-
dmBtnFinish
-
-
dmBtnNext
-
-
dmButtonPanel
-
-
dmHeight
-
-
dmMainPanel
-
-
dmPagePanel
-
-
dmPagePanelCardLayout
-
-
dmWidth
-
-
dmWizard
-
-
WizardView(Wizard, Frame, String)
- Constructor.
-
WizardView(Wizard, Frame, String, int, int)
- Constructor.
-
actionPerformed(ActionEvent)
- Process
control events.
-
addPageView(String, WizardPageView)
- Add the given view to the
card layout panel.
-
createControls()
- Create the UI controls.
-
enableFinish(boolean)
- Enable the wizard 'finish' button.
-
enableNext(boolean)
- Enable the wizard 'next' button.
-
enablePrevious(boolean)
- Enable the wizard 'back' button.
-
getBackButton()
- Returns the previous button.
-
getCancelButton()
- Returns the cancel button.
-
getCardLayout()
- Returns the card-layout for the wizard-view.
-
getExceptionHandler()
- Returns the exception handler.
-
getFinishButton()
- Returns the finish button.
-
getNextButton()
- Returns the next button.
-
initialize()
- Initialize the wiz.
-
removePageView(WizardPageView)
- Remove the given view from the
card layout.
-
showPageView(String)
- Make the hashed page view corrisponding to the given id
visible in the card layout.
-
windowClosing(WindowEvent)
- Processes a window close event.
dmWizard
private Wizard dmWizard
dmWidth
private int dmWidth
dmHeight
private int dmHeight
dmBtnBack
private WizardView. WizardButton dmBtnBack
dmBtnNext
private WizardView. WizardButton dmBtnNext
dmBtnFinish
private WizardView. WizardButton dmBtnFinish
dmBtnCancel
private WizardView. WizardButton dmBtnCancel
dmMainPanel
private JPanel dmMainPanel
dmButtonPanel
private JPanel dmButtonPanel
dmPagePanel
private JPanel dmPagePanel
dmPagePanelCardLayout
private CardLayout dmPagePanelCardLayout
WizardView
public WizardView(Wizard wizard,
Frame parent,
String title)
- Constructor.
- Parameters:
- wizard - the wiz.
- handler - the exception handler.
- parent - the parent frame.
- title - the title for the dialog.
WizardView
public WizardView(Wizard wizard,
Frame parent,
String title,
int width,
int height)
- Constructor.
- Parameters:
- wizard - the wiz.
- handler - the exception handler.
- parent - the parent frame.
- title - the title for the dialog.
- width - the view width in pixels.
- height - the view height in pixels.
createControls
private void createControls()
- Create the UI controls.
getExceptionHandler
public ExceptionHandler getExceptionHandler()
- Returns the exception handler.
getCardLayout
public CardLayout getCardLayout()
- Returns the card-layout for the wizard-view.
getBackButton
public JButton getBackButton()
- Returns the previous button. @return the button.
getNextButton
public JButton getNextButton()
- Returns the next button. @return the button.
getFinishButton
public JButton getFinishButton()
- Returns the finish button. @return the button.
getCancelButton
public JButton getCancelButton()
- Returns the cancel button. @return the button.
initialize
public void initialize() throws InternalError, ExternalError
- Initialize the wiz.
addPageView
public void addPageView(String id,
WizardPageView view)
- Add the given view to the
card layout panel.
- Parameters:
- id - the page unique id.
- view - the page view.
removePageView
public void removePageView(WizardPageView view)
- Remove the given view from the
card layout.
- Parameters:
- view - the page view.
showPageView
public void showPageView(String id)
- Make the hashed page view corrisponding to the given id
visible in the card layout.
- Parameters:
- id - the page unique id.
enableNext
public void enableNext(boolean enable)
- Enable the wizard 'next' button.
- Parameters:
- enable - set enabled if true
enablePrevious
public void enablePrevious(boolean enable)
- Enable the wizard 'back' button.
- Parameters:
- enable - set enabled if true
enableFinish
public void enableFinish(boolean enable)
- Enable the wizard 'finish' button.
- Parameters:
- enable - set enabled if true
windowClosing
public void windowClosing(WindowEvent event)
- Processes a window close event.
- Parameters:
- event - the window event.
- Overrides:
- windowClosing in class NFXJDialog
actionPerformed
public void actionPerformed(ActionEvent event)
- Process
control events.
All Packages Class Hierarchy This Package Previous Next Index