Package org.harctoolbox.guicomponents
Class LookAndFeelManager
java.lang.Object
org.harctoolbox.guicomponents.LookAndFeelManager
This class allows for manipulation of the Look and feel of a Window.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Allows for error reporting function and a set-property function of the caller. -
Constructor Summary
ConstructorDescriptionLookAndFeelManager
(Window topLevel, JMenu lafMenu, LookAndFeelManager.ILookAndFeelManagerCaller caller) Allows for setting Look and feel. -
Method Summary
-
Constructor Details
-
LookAndFeelManager
public LookAndFeelManager(Window topLevel, JMenu lafMenu, LookAndFeelManager.ILookAndFeelManagerCaller caller) Allows for setting Look and feel.- Parameters:
topLevel
- Window to be manipulated.lafMenu
- Submenu to be filled. Must be generated by the caller, or null.caller
- ILookAndFeelManager representing the caller.
-
-
Method Details
-
setLAF
public void setLAF(int index) Sets the Look and feel. Does not update the window. Calls the caller's err-function if error occurs.- Parameters:
index
- System dependent index of LAF.
-
setLAFex
public void setLAFex(int index) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException Sets the Look and feel. Does not update the window. Does not call the caller's err-function if error occurs.- Parameters:
index
- System dependent index of LAF.- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
UnsupportedLookAndFeelException
-
updateLAF
public void updateLAF()Updates the window for a possibly newly selected LAF. -
getCurrentLAFClassName
Returns class name of currently selected LAF.- Returns:
- Class name of currently selected LAF.
-