byucc.jhdl.util.ui
Class AppUIManager

java.lang.Object
  extended bybyucc.jhdl.util.ui.AppUIManager

public class AppUIManager
extends java.lang.Object

This class is used a central repository for properties to be used in an application. There will every only be one AppUIManager in existence, however, since it was built with the idea of groups in mind, it is easy to avoid name clashed by putting properties into the proper group. Thus allowing everyone to use the same AppUIManager.


Constructor Summary
AppUIManager()
           
 
Method Summary
static void addPropertyChangeListener(java.lang.String app, java.beans.PropertyChangeListener listener)
           
static java.lang.Object get(java.lang.String app, java.lang.Object key)
           
static javax.swing.UIDefaults getAppDefaults(java.lang.String app)
          Gets the defaults for a specific application.
static java.lang.String[] getApplications()
           
static boolean getBoolean(java.lang.String app, java.lang.Object key)
           
static java.awt.Color getColor(java.lang.String app, java.lang.Object key)
           
static java.lang.String[] getGroups(java.lang.String app)
           
static int getInt(java.lang.String app, java.lang.Object key)
           
static java.lang.String[] getKeysInGroup(java.lang.String app, java.lang.String group)
           
static java.awt.Color getTextBackground()
           
static java.awt.Color getTextForeground()
           
static java.lang.Object put(java.lang.String app, java.lang.Object key, java.lang.Object value)
          Puts a property into the table for the specified application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppUIManager

public AppUIManager()
Method Detail

getAppDefaults

public static javax.swing.UIDefaults getAppDefaults(java.lang.String app)
Gets the defaults for a specific application. This method is meant to be used only for applications to insert their defaults. User changes/queries should use the various put/get methods to modify the user selections. If the applications does not exist, it will be created.


put

public static java.lang.Object put(java.lang.String app,
                                   java.lang.Object key,
                                   java.lang.Object value)
Puts a property into the table for the specified application. If the application does not yet exist, it is created.


get

public static java.lang.Object get(java.lang.String app,
                                   java.lang.Object key)

getColor

public static java.awt.Color getColor(java.lang.String app,
                                      java.lang.Object key)

getInt

public static int getInt(java.lang.String app,
                         java.lang.Object key)

getBoolean

public static boolean getBoolean(java.lang.String app,
                                 java.lang.Object key)

addPropertyChangeListener

public static void addPropertyChangeListener(java.lang.String app,
                                             java.beans.PropertyChangeListener listener)

getGroups

public static java.lang.String[] getGroups(java.lang.String app)

getKeysInGroup

public static java.lang.String[] getKeysInGroup(java.lang.String app,
                                                java.lang.String group)

getApplications

public static java.lang.String[] getApplications()

getTextForeground

public static java.awt.Color getTextForeground()

getTextBackground

public static java.awt.Color getTextBackground()


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.