All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xu.xu_LookAndFeelAction

java.lang.Object
   |
   +----com.sun.java.swing.AbstractAction
           |
           +----xu.xu_ButtonGroupAction
                   |
                   +----xu.xu_LookAndFeelAction

public class xu_LookAndFeelAction
extends xu_ButtonGroupAction
A button group action to be invoked by a menu group, each of whose menu items is expected to represent a Swing look-and-feel. When the actionPerformed method is invoked, obtain the attributes of the newly- selected menu item and change the look-and-feel of the ParentFrame to suit.


Variable Index

 o ParentFrame
This action's parent frame, to be passed to the dialog box we create.

Constructor Index

 o xu_LookAndFeelAction(JFrame)
Constructor.

Method Index

 o actionPerformed(ActionEvent)
The currently-selected button has changed.
 o conformToState()
Take whatever steps are necessary to bring the Action into line with what the controlling check box wishes (as indicated by the value of StateFlag).
 o setMetalTheme(String)
Set the Swing Metal theme to that defined in the named class.

Variables

 o ParentFrame
 protected JFrame ParentFrame
This action's parent frame, to be passed to the dialog box we create.

Constructors

 o xu_LookAndFeelAction
 public xu_LookAndFeelAction(JFrame InputParentFrame)
Constructor.

Parameters:
InputActionName - The name of the action

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent InputActionEvent)
The currently-selected button has changed.

Overrides:
actionPerformed in class xu_ButtonGroupAction
 o conformToState
 public void conformToState()
Take whatever steps are necessary to bring the Action into line with what the controlling check box wishes (as indicated by the value of StateFlag). This method may be called either when the associated menu item is selected (ie. called by actionPerformed) or during initialization.

 o setMetalTheme
 public void setMetalTheme(String InputMetalThemeClassName)
Set the Swing Metal theme to that defined in the named class. param InputMetalThemeClassName The name of a Metal theme class


All Packages  Class Hierarchy  This Package  Previous  Next  Index