Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.swing.config
Class LookAndFeelChoices  view LookAndFeelChoices download LookAndFeelChoices.java

java.lang.Object
  extended bycom.eireneh.config.choices.ClassChoices
      extended bycom.eireneh.swing.config.LookAndFeelChoices
All Implemented Interfaces:
java.io.Serializable

public class LookAndFeelChoices
extends com.eireneh.config.choices.ClassChoices

LookAndFeelChoices 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:
Project B 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, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.


Nested Class Summary
 
Nested classes inherited from class com.eireneh.config.choices.ClassChoices
com.eireneh.config.choices.ClassChoices.Current, com.eireneh.config.choices.ClassChoices.Options
 
Field Summary
private static java.lang.Class current
          The current PLAF (and the default value)
private static java.util.Hashtable defaults
          The default Configs
private static java.util.Vector windows
          The frames to update
 
Fields inherited from class com.eireneh.config.choices.ClassChoices
base, options
 
Constructor Summary
LookAndFeelChoices()
          Changing the look of the config dialog
 
Method Summary
static void addWindow(java.awt.Window window)
          Add a Frame to the list that need to be updated when the PLAF changes.
protected  java.lang.Class getCurrentClass()
          The Options customization
static void removeWindow(java.awt.Window window)
          Remove a Frame from the list that need to be updated when the PLAF changes.
static void resetWindows()
          Make all the windows fall into line with the current look
protected  void setCurrentClass(java.lang.Class new_class)
          The Options customization
static void setLookAndFeel(javax.swing.LookAndFeel plaf)
          Make the specified PLAF the current
 
Methods inherited from class com.eireneh.config.choices.ClassChoices
getCurrentChoice, getOptionsChoice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

windows

private static transient java.util.Vector windows
The frames to update


current

private static java.lang.Class current
The current PLAF (and the default value)


defaults

private static java.util.Hashtable defaults
The default Configs

Constructor Detail

LookAndFeelChoices

public LookAndFeelChoices()
                   throws java.lang.ClassNotFoundException
Changing the look of the config dialog

Method Detail

getCurrentClass

protected java.lang.Class getCurrentClass()
The Options customization


setCurrentClass

protected void setCurrentClass(java.lang.Class new_class)
                        throws java.lang.InstantiationException,
                               java.lang.IllegalAccessException
The Options customization


setLookAndFeel

public static void setLookAndFeel(javax.swing.LookAndFeel plaf)
Make the specified PLAF the current


resetWindows

public static void resetWindows()
Make all the windows fall into line with the current look


addWindow

public static void addWindow(java.awt.Window window)
Add a Frame to the list that need to be updated when the PLAF changes.


removeWindow

public static void removeWindow(java.awt.Window window)
Remove a Frame from the list that need to be updated when the PLAF changes.