Compiere Looks 1.2.1

org.compiere.plaf
Class CompiereLookAndFeel

java.lang.Object
  |
  +--javax.swing.LookAndFeel
        |
        +--javax.swing.plaf.basic.BasicLookAndFeel
              |
              +--javax.swing.plaf.metal.MetalLookAndFeel
                    |
                    +--org.compiere.plaf.CompiereLookAndFeel
All Implemented Interfaces:
Serializable

public class CompiereLookAndFeel
extends MetalLookAndFeel

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");

Version:
$Id: CompiereLookAndFeel.java,v 1.10 2002/08/12 01:55:15 danb Exp $
Author:
Jorg Janke
See Also:
Serialized Form

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.metal.MetalLookAndFeel
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, 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, isNativeLookAndFeel, isSupportedLookAndFeel
 
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

NAME

public static final String NAME
The name

See Also:
Constant Field Values

ROUND

protected static boolean ROUND
Paint Round Corners

Constructor Detail

CompiereLookAndFeel

public CompiereLookAndFeel()
Constructor

Method Detail

getName

public String getName()
The Name

Overrides:
getName in class MetalLookAndFeel
Returns:
Name

getID

public String getID()
The ID

Overrides:
getID in class MetalLookAndFeel
Returns:
Name

getDescription

public String getDescription()
The Description

Overrides:
getDescription in class MetalLookAndFeel
Returns:
description

getDefaults

public UIDefaults getDefaults()
Get/Create Defaults

Overrides:
getDefaults in class MetalLookAndFeel
Returns:
UI Defaults

initClassDefaults

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. Each JComponent class specifies its own UI class ID string.

Overrides:
initClassDefaults in class MetalLookAndFeel
Parameters:
table - UI Defaults

initSystemColorDefaults

protected void initSystemColorDefaults(UIDefaults table)
For overwriting Component defaults

Overrides:
initSystemColorDefaults in class MetalLookAndFeel
Parameters:
table -

initComponentDefaults

protected void initComponentDefaults(UIDefaults table)
For overwriting Component defaults

Overrides:
initComponentDefaults in class MetalLookAndFeel
Parameters:
table -

createDefaultTheme

protected void createDefaultTheme()
Create Default Thems

Overrides:
createDefaultTheme in class MetalLookAndFeel

setCurrentTheme

public static void setCurrentTheme(MetalTheme theme)
Set Current Theme

Parameters:
theme - metal theme

getCurrentTheme

public static MetalTheme getCurrentTheme()
Get Current Theme

Returns:
Metal Theme

getCompiereTheme

public static CompiereTheme getCompiereTheme()
Get Compiere 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 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.

Overrides:
provideErrorFeedback in class MetalLookAndFeel
Parameters:
component - Component the error occured in, may be null indicating the error condition is not directly associated with a Component.

Compiere Looks 1.2.1

Copyright (c) 1999-2003 ComPiere, Inc. - Author: Jorg Janke