net.javaprog.ui.wizard.plaf.windows
Class WindowsWizardContentPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by net.javaprog.ui.wizard.plaf.WizardContentPaneUI
          extended by net.javaprog.ui.wizard.plaf.basic.BasicWizardContentPaneUI
              extended by net.javaprog.ui.wizard.plaf.windows.WindowsWizardContentPaneUI

public class WindowsWizardContentPaneUI
extends BasicWizardContentPaneUI

Adapts the wizard's content pane to the Windows look and feel. This implementations creates a custom WizardNavigator component in order to reflect the windows wizards' button layout (the next button changes to the finish button at the last step). Furthermore this UI delegate provides its own layout manager that shows the StepListRenderer only for the first and the last step and the StepDescriptionRenderer only for the steps in between.

Author:
Michael Rudolf

Nested Class Summary
protected  class WindowsWizardContentPaneUI.WindowsPropertyChangeHandler
           
protected  class WindowsWizardContentPaneUI.WindowsWizardLayout
           
 
Nested classes/interfaces inherited from class net.javaprog.ui.wizard.plaf.basic.BasicWizardContentPaneUI
BasicWizardContentPaneUI.BasicPropertyChangeHandler, BasicWizardContentPaneUI.BasicWizardLayout, BasicWizardContentPaneUI.BasicWizardModelHandler
 
Field Summary
 
Fields inherited from class net.javaprog.ui.wizard.plaf.basic.BasicWizardContentPaneUI
actionListener, currentStep, propertyChangeListener, stepDescriptionRenderer, stepListRenderer, windowListener, wizard, wizardContentPane, wizardModelListener, wizardNavigator
 
Constructor Summary
WindowsWizardContentPaneUI()
           
 
Method Summary
protected  LayoutManager createLayoutManager()
           
protected  PropertyChangeListener createPropertyChangeListener()
           
static ComponentUI createUI(JComponent c)
           
protected  BasicWizardNavigator createWizardNavigator()
           
protected  void updateStepComponent()
           
 
Methods inherited from class net.javaprog.ui.wizard.plaf.basic.BasicWizardContentPaneUI
createActionListener, createWindowListener, createWizardModelListener, getPropertyPrefix, installComponents, installDefaults, installListeners, installUI, uninstallComponents, uninstallDefaults, uninstallListeners, uninstallUI, updateStepDescriptionRendererComponent, updateStepListRendererComponent
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsWizardContentPaneUI

public WindowsWizardContentPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

updateStepComponent

protected void updateStepComponent()
Overrides:
updateStepComponent in class BasicWizardContentPaneUI

createWizardNavigator

protected BasicWizardNavigator createWizardNavigator()
Overrides:
createWizardNavigator in class BasicWizardContentPaneUI

createLayoutManager

protected LayoutManager createLayoutManager()
Overrides:
createLayoutManager in class BasicWizardContentPaneUI

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
Overrides:
createPropertyChangeListener in class BasicWizardContentPaneUI