@Service(value=TentackleLookAndFeel.class) public class TMetalLookAndFeel extends MetalLookAndFeel implements TentackleLookAndFeel
| Constructor and Description |
|---|
TMetalLookAndFeel()
Creates a new instance of TMetalLookAndFeel
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDefaultTheme() |
String |
getDescription() |
String |
getID() |
Color |
getMandatoryColor()
Gets the mandatory color for fields and selected table cells.
|
String |
getName() |
static String |
getTMetalDescription() |
static String |
getTMetalName() |
Color |
getUnselectedMandatoryColor()
Gets the mandatory color for unselected table cells.
|
protected void |
initClassDefaults(UIDefaults table) |
protected void |
initComponentDefaults(UIDefaults table) |
boolean |
isFocusAnimated()
Retrievs the current setting for the focus animation.
|
ImageIcon |
loadImageIcon(String name)
Implements TentackleLookAndFeel.
|
void |
loadTentackleExtraColors()
Loads all tentackle-laf specific colors.
|
static void |
setCurrentTheme(MetalTheme theme)
Sets the current color theme.
|
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.
|
void |
setMandatoryColor(Color mandatoryColor)
Sets the mandatory color for fields and selected table cells.
|
void |
setUnselectedMandatoryColor(Color unselectedMandatoryColor)
Sets the mandatory color for unselected table cells.
|
void |
uninitialize() |
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, initSystemColorDefaults, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedbackcreateAudioAction, getAudioActionMap, initialize, loadSystemColors, playSoundgetDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorderpublic TMetalLookAndFeel()
public void loadTentackleExtraColors()
TentackleLookAndFeelloadTentackleExtraColors in interface TentackleLookAndFeelpublic Color getMandatoryColor()
TentackleLookAndFeelgetMandatoryColor in interface TentackleLookAndFeelpublic void setMandatoryColor(Color mandatoryColor)
TentackleLookAndFeelsetMandatoryColor in interface TentackleLookAndFeelmandatoryColor - the mandatory colorpublic Color getUnselectedMandatoryColor()
TentackleLookAndFeelgetUnselectedMandatoryColor in interface TentackleLookAndFeelpublic void setUnselectedMandatoryColor(Color unselectedMandatoryColor)
TentackleLookAndFeelsetUnselectedMandatoryColor in interface TentackleLookAndFeelunselectedMandatoryColor - the mandatory colorpublic static String getTMetalName()
public static String getTMetalDescription()
public String getName()
getName in class MetalLookAndFeelpublic String getDescription()
getDescription in class MetalLookAndFeelpublic String getID()
getID in class MetalLookAndFeelprotected void createDefaultTheme()
createDefaultTheme in class MetalLookAndFeelpublic static void setCurrentTheme(MetalTheme theme)
theme - the themepublic void uninitialize()
UIManager.setLookAndFeel calls this method just before we're replaced by a new default look and feel. Subclasses may choose to free up some resources here.
uninitialize in class BasicLookAndFeelBasicLookAndFeel.initialize()protected void initClassDefaults(UIDefaults table)
overridden to install special TMetal UI
initClassDefaults in class MetalLookAndFeelprotected void initComponentDefaults(UIDefaults table)
initComponentDefaults in class MetalLookAndFeelpublic ImageIcon loadImageIcon(String name) throws MissingResourceException
loadImageIcon in interface TentackleLookAndFeelname - the icon's name (without extension like gif or png!)MissingResourceException - if no such iconpublic void setFocusAnimated(boolean flag)
setFocusAnimated in interface TentackleLookAndFeelflag - the boolean value which is true to enable the animation, false to turn it offpublic boolean isFocusAnimated()
isFocusAnimated in interface TentackleLookAndFeelTentackle - distributed, domain- and model-driven