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.
-
ParentFrame
- This action's parent frame, to be passed to the dialog box we create.
-
xu_LookAndFeelAction(JFrame)
- Constructor.
-
actionPerformed(ActionEvent)
- The currently-selected button has changed.
-
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).
-
setMetalTheme(String)
- Set the Swing Metal theme to that defined in the named class.
ParentFrame
protected JFrame ParentFrame
- This action's parent frame, to be passed to the dialog box we create.
xu_LookAndFeelAction
public xu_LookAndFeelAction(JFrame InputParentFrame)
- Constructor.
- Parameters:
- InputActionName - The name of the action
actionPerformed
public void actionPerformed(ActionEvent InputActionEvent)
- The currently-selected button has changed.
- Overrides:
- actionPerformed in class xu_ButtonGroupAction
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.
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