Package org.adempiere.plaf
Class AdempiereLookAndFeel
- java.lang.Object
-
- javax.swing.LookAndFeel
-
- javax.swing.plaf.basic.BasicLookAndFeel
-
- javax.swing.plaf.metal.MetalLookAndFeel
-
- com.jgoodies.looks.plastic.PlasticLookAndFeel
-
- com.jgoodies.looks.plastic.Plastic3DLookAndFeel
-
- org.adempiere.plaf.AdempiereLookAndFeel
-
- All Implemented Interfaces:
Serializable
public class AdempiereLookAndFeel extends com.jgoodies.looks.plastic.Plastic3DLookAndFeelAdempiere Look & Feel, based on JGoodies look and feel- Author:
- vpj-cd, Low Heng Sin
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdempiereLookAndFeel()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.jgoodies.looks.plastic.PlasticThemegetCurrentTheme()Get Current ThemeUIDefaultsgetDefaults()Get/Create Defaultsstatic com.jgoodies.looks.plastic.PlasticThemegetDefaultTheme()Get default adempiere themeStringgetDescription()The DescriptionStringgetID()The IDStringgetName()The Nameprotected voidinitClassDefaults(UIDefaults table)Creates the mapping from UI class IDs toComponentUIclasses, putting the ID-ComponentUIpairs in the passed-in defaults table.protected voidinitComponentDefaults(UIDefaults table)For overwriting Component defaultsprotected voidinitSystemColorDefaults(UIDefaults table)For overwriting Component defaultsvoidprovideErrorFeedback(Component component)Error Feedback.static voidsetCurrentTheme(com.jgoodies.looks.plastic.PlasticTheme theme)Set Current Theme-
Methods inherited from class com.jgoodies.looks.plastic.Plastic3DLookAndFeel
installDefaultThemes, is3DEnabled
-
Methods inherited from class com.jgoodies.looks.plastic.PlasticLookAndFeel
createButtonMargin, createMyDefaultTheme, createTheme, getControl, getControlDarkShadow, getControlHighlight, getFocusColor, getFontPolicy, getHighContrastFocusColorsEnabled, getInstalledThemes, getInternalFrameBorder, getMenuItemBackground, getMenuItemSelectedBackground, getMenuItemSelectedForeground, getMyCurrentTheme, getPaletteBorder, getPlasticTheme, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSimpleInternalFrameBackground, getSimpleInternalFrameForeground, getTabStyle, getTitleTextColor, getTitleTextFont, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, initialize, installTheme, set3DEnabled, setFontPolicy, setHighContrastFocusColorsEnabled, setMyCurrentTheme, setPlasticTheme, setTabStyle, uninitialize
-
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControlDisabled, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleFont, isNativeLookAndFeel, isSupportedLookAndFeel, setCurrentTheme
-
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, loadSystemColors, playSound
-
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
-
-
-
-
Field Detail
-
NAME
public static final String NAME
The name- See Also:
- Constant Field Values
-
ROUND
protected static boolean ROUND
Paint Round Corners
-
TABLEVEL
public static final String TABLEVEL
- See Also:
- Constant Field Values
-
HIDE_IF_ONE_TAB
public static final String HIDE_IF_ONE_TAB
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
The Name- Overrides:
getNamein classcom.jgoodies.looks.plastic.Plastic3DLookAndFeel- Returns:
- Name
-
getID
public String getID()
The ID- Overrides:
getIDin classcom.jgoodies.looks.plastic.Plastic3DLookAndFeel- Returns:
- Name
-
getDescription
public String getDescription()
The Description- Overrides:
getDescriptionin classcom.jgoodies.looks.plastic.Plastic3DLookAndFeel- Returns:
- description
-
getDefaults
public UIDefaults getDefaults()
Get/Create Defaults- Overrides:
getDefaultsin classMetalLookAndFeel- Returns:
- UI Defaults
-
initClassDefaults
protected void initClassDefaults(UIDefaults table)
Creates the mapping from UI class IDs toComponentUIclasses, putting the ID-ComponentUIpairs in the passed-in defaults table. EachJComponentclass specifies its own UI class ID string.- Overrides:
initClassDefaultsin classcom.jgoodies.looks.plastic.PlasticLookAndFeel- Parameters:
table- UI Defaults
-
initSystemColorDefaults
protected void initSystemColorDefaults(UIDefaults table)
For overwriting Component defaults- Overrides:
initSystemColorDefaultsin classcom.jgoodies.looks.plastic.PlasticLookAndFeel- Parameters:
table-
-
initComponentDefaults
protected void initComponentDefaults(UIDefaults table)
For overwriting Component defaults- Overrides:
initComponentDefaultsin classcom.jgoodies.looks.plastic.Plastic3DLookAndFeel- Parameters:
table-
-
setCurrentTheme
public static void setCurrentTheme(com.jgoodies.looks.plastic.PlasticTheme theme)
Set Current Theme- Parameters:
theme- metal theme
-
getCurrentTheme
public static com.jgoodies.looks.plastic.PlasticTheme getCurrentTheme()
Get Current Theme- Returns:
- Metal Theme
-
getDefaultTheme
public static com.jgoodies.looks.plastic.PlasticTheme getDefaultTheme()
Get default adempiere theme- Returns:
- Metal Theme
-
provideErrorFeedback
public void provideErrorFeedback(Component component)
Error Feedback.Invoked when the user attempts an invalid operation, such as pasting into an uneditable
JTextFieldthat has focus.If the user has enabled visual error indication on the desktop, this method will flash the caption bar of the active window. The user can also set the property awt.visualbell=true to achieve the same results.
- Overrides:
provideErrorFeedbackin classMetalLookAndFeel- Parameters:
component- Component the error occured in, may be null indicating the error condition is not directly associated with aComponent.
-
-