org.tentackle.plaf
Class PlafGlobal

java.lang.Object
  extended by org.tentackle.plaf.PlafGlobal

public class PlafGlobal
extends Object

Plaf globals.

Author:
harald

Field Summary
static Color alarmBackgroundColor
           
static Color alarmColor
          system colors
static Color dropFieldActiveColor
           
static Color dropFieldInactiveColor
           
static Color listSelectedDisabledForegroundColor
           
static Color listSelectedForegroundColor
           
static Color listUnselectedDisabledForegroundColor
           
static Color listUnselectedForegroundColor
           
static Logger logger
          Default logger for the appworx-package
static Color tableBackgroundColor
           
static Color tableEditCellBorderColor
           
static Color tableFocusCellBackgroundColor
           
static Color tableFocusCellForegroundColor
           
static Color tableForegroundColor
           
static Color tableSelectionBackgroundColor
           
static Color tableSelectionForegroundColor
           
static String TENTACKLE_ICONREALM
          The namespace of the icons for tentackle (can be used by apps)
static Color textFieldBackgroundColor
           
static Color textFieldInactiveBackgroundColor
           
 
Constructor Summary
PlafGlobal()
           
 
Method Summary
static IconProvider addIconProvider(IconProvider iconProvider)
          Registers an IconProvider.
static ImageIcon getIcon(String name)
          Gets the icon for the tentackle default realm.
static ImageIcon getIcon(String realm, String name)
          Gets an icon for the current look-and-feel, a given realm and icon name.
static UIManager.LookAndFeelInfo[] getInstalledTentackleLookAndFeels()
          Gets all installed tentackle Look and Feels
static void installTentackleLookAndFeels()
          Installs all Tentackle Look and Feels
static boolean isFocusAnimated()
          Retrievs the current setting for the focus animation.
static IconProvider removeIconProvider(String realm)
          Unregisters an IconProvider for a given realm.
static void setFocusAnimated(boolean flag)
          Configures the animated keyboard focus for non-text components that can grab the keyboard focus, such as comboboxes, radio buttons or check boxes.
static void triggerLookAndFeelUpdated()
          Invoke this method whenever the plaf has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static Logger logger
Default logger for the appworx-package


alarmColor

public static Color alarmColor
system colors


alarmBackgroundColor

public static Color alarmBackgroundColor

listSelectedForegroundColor

public static Color listSelectedForegroundColor

listUnselectedForegroundColor

public static Color listUnselectedForegroundColor

listSelectedDisabledForegroundColor

public static Color listSelectedDisabledForegroundColor

listUnselectedDisabledForegroundColor

public static Color listUnselectedDisabledForegroundColor

tableForegroundColor

public static Color tableForegroundColor

tableBackgroundColor

public static Color tableBackgroundColor

tableFocusCellForegroundColor

public static Color tableFocusCellForegroundColor

tableFocusCellBackgroundColor

public static Color tableFocusCellBackgroundColor

tableSelectionForegroundColor

public static Color tableSelectionForegroundColor

tableSelectionBackgroundColor

public static Color tableSelectionBackgroundColor

dropFieldActiveColor

public static Color dropFieldActiveColor

dropFieldInactiveColor

public static Color dropFieldInactiveColor

tableEditCellBorderColor

public static Color tableEditCellBorderColor

textFieldBackgroundColor

public static Color textFieldBackgroundColor

textFieldInactiveBackgroundColor

public static Color textFieldInactiveBackgroundColor

TENTACKLE_ICONREALM

public static final String TENTACKLE_ICONREALM
The namespace of the icons for tentackle (can be used by apps)

See Also:
Constant Field Values
Constructor Detail

PlafGlobal

public PlafGlobal()
Method Detail

installTentackleLookAndFeels

public static void installTentackleLookAndFeels()
Installs all Tentackle Look and Feels


getInstalledTentackleLookAndFeels

public static UIManager.LookAndFeelInfo[] getInstalledTentackleLookAndFeels()
Gets all installed tentackle Look and Feels

Returns:
the installed tentackle plafs

setFocusAnimated

public static void setFocusAnimated(boolean flag)
Configures the animated keyboard focus for non-text components that can grab the keyboard focus, such as comboboxes, radio buttons or check boxes. By default, the animation is enabled. For non-tentackle plafs this setting has no effect.

Parameters:
flag - the boolean value which is true to enable the animation, false to turn it off

isFocusAnimated

public static boolean isFocusAnimated()
Retrievs the current setting for the focus animation.

Returns:
true if focus is animated

addIconProvider

public static IconProvider addIconProvider(IconProvider iconProvider)
Registers an IconProvider. Applications can register their own providers for the their namespaces.

Parameters:
iconProvider - the provider to register
Returns:
null if there was no provider for the provider's realm, the old provider otherwise

removeIconProvider

public static IconProvider removeIconProvider(String realm)
Unregisters an IconProvider for a given realm.

Parameters:
realm - the realm to remove the provider for
Returns:
null if there was no provider for the provider's realm, the old provider otherwise

getIcon

public static ImageIcon getIcon(String realm,
                                String name)
                         throws MissingResourceException
Gets an icon for the current look-and-feel, a given realm and icon name.

Parameters:
realm - the icon's namespace
name - the name if the icon
Returns:
the icon
Throws:
MissingResourceException - if no such icon

getIcon

public static ImageIcon getIcon(String name)
                         throws MissingResourceException
Gets the icon for the tentackle default realm.

Parameters:
name - the name if the icon
Returns:
the icon
Throws:
MissingResourceException - if no such icon

triggerLookAndFeelUpdated

public static void triggerLookAndFeelUpdated()
Invoke this method whenever the plaf has changed.



Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de