|
Compiere Looks 1.2.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.LookAndFeel
|
+--javax.swing.plaf.basic.BasicLookAndFeel
|
+--javax.swing.plaf.metal.MetalLookAndFeel
|
+--org.compiere.plaf.CompiereLookAndFeel
Compiere Look & Feel.
We wanted a nice UI not the battleship gray based stuff.
I guess a matter of taste.
:
UIManager.setLookAndFeel(new com.compiere.plaf.CompiereLookAndFeel());
// or UIManager.setLookAndFeel("com.compiere.plaf.CompiereLookAndFeel");
| Field Summary | |
static String |
NAME
The name |
protected static boolean |
ROUND
Paint Round Corners |
| Constructor Summary | |
CompiereLookAndFeel()
Constructor |
|
| Method Summary | |
protected void |
createDefaultTheme()
Create Default Thems |
static CompiereTheme |
getCompiereTheme()
Get Compiere Theme |
static MetalTheme |
getCurrentTheme()
Get Current Theme |
UIDefaults |
getDefaults()
Get/Create Defaults |
String |
getDescription()
The Description |
String |
getID()
The ID |
String |
getName()
The Name |
protected void |
initClassDefaults(UIDefaults table)
Creates the mapping from UI class IDs to ComponentUI classes,
putting the ID-ComponentUI pairs in the passed-in defaults table. |
protected void |
initComponentDefaults(UIDefaults table)
For overwriting Component defaults |
protected void |
initSystemColorDefaults(UIDefaults table)
For overwriting Component defaults |
void |
provideErrorFeedback(Component component)
Error Feedback. |
static void |
setCurrentTheme(MetalTheme theme)
Set Current Theme |
| Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
createAudioAction, getAudioActionMap, loadSystemColors, playSound |
| Methods inherited from class javax.swing.LookAndFeel |
getDesktopPropertyValue, initialize, installBorder, installColors, installColorsAndFont, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninitialize, uninstallBorder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String NAME
protected static boolean ROUND
| Constructor Detail |
public CompiereLookAndFeel()
| Method Detail |
public String getName()
getName in class MetalLookAndFeelpublic String getID()
getID in class MetalLookAndFeelpublic String getDescription()
getDescription in class MetalLookAndFeelpublic UIDefaults getDefaults()
getDefaults in class MetalLookAndFeelprotected void initClassDefaults(UIDefaults table)
ComponentUI classes,
putting the ID-ComponentUI pairs in the passed-in defaults table.
Each JComponent class specifies its own UI class ID string.
initClassDefaults in class MetalLookAndFeeltable - UI Defaultsprotected void initSystemColorDefaults(UIDefaults table)
initSystemColorDefaults in class MetalLookAndFeeltable - protected void initComponentDefaults(UIDefaults table)
initComponentDefaults in class MetalLookAndFeeltable - protected void createDefaultTheme()
createDefaultTheme in class MetalLookAndFeelpublic static void setCurrentTheme(MetalTheme theme)
theme - metal themepublic static MetalTheme getCurrentTheme()
public static CompiereTheme getCompiereTheme()
public void provideErrorFeedback(Component component)
Invoked when the user attempts an invalid operation,
such as pasting into an uneditable JTextField
that 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.
provideErrorFeedback in class MetalLookAndFeelcomponent - Component the error occured in, may be
null indicating the error condition is
not directly associated with a
Component.
|
Compiere Looks 1.2.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||