juife
v0.1a

net.sf.juife.plaf.basic
Class BasicWizardUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by net.sf.juife.plaf.WizardUI
              extended by net.sf.juife.plaf.basic.BasicWizardUI

public class BasicWizardUI
extends WizardUI

Basic L&F implementation of WizardUI.


Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates a new instance of BasicWizardUI.
 void displayBackButton(boolean b)
          Determines whether to display the 'Back' button in the Bottom Pane.
 void displayCancelButton(boolean b)
          Determines whether to display the 'Cancel' button in the Bottom Pane.
 void displayCloseButton(boolean b)
          Determines whether to display the 'Close' button in the Bottom Pane.
 void displayFinishButton(boolean b)
          Determines whether to display the 'Finish' button in the Bottom Pane.
 void displayHelpButton(boolean b)
          Determines whether to display the 'Help' button in the Bottom Pane.
 void displayLastButton(boolean b)
          Determines whether to display the 'Last' button in the Bottom Pane.
 void displayNextButton(boolean b)
          Determines whether to display the 'Nex't button in the Bottom Pane.
 void enableBackButton(boolean enabled)
          Determines whether to enable the 'Back' button in the Bottom Pane.
 void enableCancelButton(boolean enabled)
          Determines whether to enable the 'Cancel' button in the Bottom Pane.
 void enableFinishButton(boolean enabled)
          Determines whether to enable the 'Finish' button in the Bottom Pane.
 void enableHelpButton(boolean enabled)
          Determines whether to enable the 'Help' button in the Bottom Pane.
 void enableLastButton(boolean enabled)
          Determines whether to enable the 'Last' button in the Bottom Pane.
 void enableNextButton(boolean enabled)
          Determines whether to enable the 'Nex't button in the Bottom Pane.
protected  java.lang.String getPropertyPrefix()
          Gets the property prefix.
protected  void installDefaults()
          Installs the UI defaults.
protected  void installListeners()
          Installs the event listeners for the UI.
 void installUI(javax.swing.JComponent c)
          Configures the specified component appropriate for the look and feel.
 boolean mayCancelWizard()
          Determines whether the wizard can be cancelled.
 void setCurrentPage(WizardPage page)
          Sets the current page of the wizard.
protected  void uninstallDefaults()
          Uninstalls the UI defaults.
protected  void uninstallListeners()
          Uninstalls the event listeners for the UI.
 void uninstallUI(javax.swing.JComponent c)
          Reverses configuration which was done on the specified component during installUI.
 
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
 

Method Detail

getPropertyPrefix

protected java.lang.String getPropertyPrefix()
Gets the property prefix.

Returns:
The property prefix.

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates a new instance of BasicWizardUI.

Returns:
A new instance of BasicWizardUI.

installUI

public void installUI(javax.swing.JComponent c)
Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component.

Overrides:
installUI in class javax.swing.plaf.ComponentUI
Parameters:
c - The component where this UI delegate is being installed.

installDefaults

protected void installDefaults()
Installs the UI defaults.


installListeners

protected void installListeners()
Installs the event listeners for the UI.


uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Reverses configuration which was done on the specified component during installUI. This method is invoked when this BasicWizardUI instance is being removed as the UI delegate for the specified component.

Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI
Parameters:
c - The component from which this UI delegate is being removed.

uninstallDefaults

protected void uninstallDefaults()
Uninstalls the UI defaults.


uninstallListeners

protected void uninstallListeners()
Uninstalls the event listeners for the UI.


setCurrentPage

public void setCurrentPage(WizardPage page)
Sets the current page of the wizard.

Parameters:
page - The wizard page to be set as current.

displayBackButton

public void displayBackButton(boolean b)
Determines whether to display the 'Back' button in the Bottom Pane.

Parameters:
b - Specify true to display the 'Back' button in the Bottom Pane; false to hide the 'Back' button.

displayNextButton

public void displayNextButton(boolean b)
Determines whether to display the 'Nex't button in the Bottom Pane.

Parameters:
b - Specify true to display the 'Next' button in the Bottom Pane; false to hide the 'Next' button.

displayLastButton

public void displayLastButton(boolean b)
Determines whether to display the 'Last' button in the Bottom Pane.

Parameters:
b - Specify true to display the 'Last' button in the Bottom Pane; false to hide the 'Last' button.

displayFinishButton

public void displayFinishButton(boolean b)
Determines whether to display the 'Finish' button in the Bottom Pane.

Parameters:
b - Specify true to display the 'Finish' button in the Bottom Pane; false to hide the 'Finish' button.

displayCancelButton

public void displayCancelButton(boolean b)
Determines whether to display the 'Cancel' button in the Bottom Pane.

Parameters:
b - Specify true to display the 'Cancel' button in the Bottom Pane; false to hide the 'Cancel' button.

displayHelpButton

public void displayHelpButton(boolean b)
Determines whether to display the 'Help' button in the Bottom Pane.

Parameters:
b - Specify true to display the 'Help' button in the Bottom Pane; false to hide the 'Help' button.

displayCloseButton

public void displayCloseButton(boolean b)
Determines whether to display the 'Close' button in the Bottom Pane.

Parameters:
b - Specify true to display the 'Close' button in the Bottom Pane; false to hide the 'Close' button.

enableBackButton

public void enableBackButton(boolean enabled)
Determines whether to enable the 'Back' button in the Bottom Pane.

Parameters:
enabled - Specify true to enable the 'Back' button in the Bottom Pane; false to disable the 'Back' button.
See Also:
JComponent.setEnabled(boolean)

enableNextButton

public void enableNextButton(boolean enabled)
Determines whether to enable the 'Nex't button in the Bottom Pane.

Parameters:
enabled - Specify true to enable the 'Next' button in the Bottom Pane; false to disable the 'Next' button.
See Also:
JComponent.setEnabled(boolean)

enableLastButton

public void enableLastButton(boolean enabled)
Determines whether to enable the 'Last' button in the Bottom Pane.

Parameters:
enabled - Specify true to enable the 'Last button' in the Bottom Pane; false to disable the 'Last' button.
See Also:
JComponent.setEnabled(boolean)

enableFinishButton

public void enableFinishButton(boolean enabled)
Determines whether to enable the 'Finish' button in the Bottom Pane.

Parameters:
enabled - Specify true to enable the 'Finish' button in the Bottom Pane; false to disable the 'Finish' button.
See Also:
JComponent.setEnabled(boolean)

enableCancelButton

public void enableCancelButton(boolean enabled)
Determines whether to enable the 'Cancel' button in the Bottom Pane.

Parameters:
enabled - Specify true to enable the 'Cancel' button in the Bottom Pane; false to disable the 'Cancel' button.
See Also:
JComponent.setEnabled(boolean)

enableHelpButton

public void enableHelpButton(boolean enabled)
Determines whether to enable the 'Help' button in the Bottom Pane.

Parameters:
enabled - Specify true to enable the 'Help' button in the Bottom Pane; false to disable the 'Help' button.
See Also:
JComponent.setEnabled(boolean)

mayCancelWizard

public boolean mayCancelWizard()
Determines whether the wizard can be cancelled.

Specified by:
mayCancelWizard in class WizardUI
Returns:
true if the wizard can be cancelled, false otherwise.

juife
v0.1a

Copyright © 2005 Grigor Iliev. All rights reserved. SourceForge.net Logo