org.crosswire.common.swing
Class LookAndFeelUtil

java.lang.Object
  extended by org.crosswire.common.swing.LookAndFeelUtil

public class LookAndFeelUtil
extends Object

LookAndFeelUtil declares the Choices and actions needed to dynamically change the look and feel (PLAF) and to add new PLAFs without needing to restart.

Distribution Licence:
JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
The copyright to this program is held by it's authors.

Version:
$Id: LookAndFeelUtil.java,v 1.7 2004/09/08 19:54:24 dmsmith Exp $
Author:
Joe Walker [joe at eireneh dot com], Mark Goodwin [mark at thorubio dot org], DM Smith [dmsmith555 at yahoo dot com]
See Also:
Licence

Field Summary
private static Class currentLAF
          The current PLAF
private static Class defaultLAF
          The default PLAF (and the default value)
 
Constructor Summary
private LookAndFeelUtil()
          Prevent Instansiation
 
Method Summary
static Class getLookAndFeel()
          The Options customization
static void initialize()
          Establish the system look and feel
static void setLookAndFeel(Class newLaFClass)
          Set the look and feel to a new class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentLAF

private static Class currentLAF
The current PLAF


defaultLAF

private static Class defaultLAF
The default PLAF (and the default value)

Constructor Detail

LookAndFeelUtil

private LookAndFeelUtil()
Prevent Instansiation

Method Detail

initialize

public static void initialize()
Establish the system look and feel


getLookAndFeel

public static Class getLookAndFeel()
The Options customization


setLookAndFeel

public static void setLookAndFeel(Class newLaFClass)
                           throws InstantiationException,
                                  IllegalAccessException,
                                  UnsupportedLookAndFeelException
Set the look and feel to a new class.

Throws:
InstantiationException
IllegalAccessException
UnsupportedLookAndFeelException

Copyright ? 2003-2004