Class 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.adempiere.plaf.AdempiereLookAndFeel()); // or UIManager.setLookAndFeel("com.adempiere.plaf.AdempiereLookAndFeel");
    Version:
    $Id: AdempiereLookAndFeel.java,v 1.2 2006/07/30 00:52:24 jjanke Exp $
    Author:
    Jorg Janke
    See Also:
    Serialized Form
    • Constructor Detail

      • CompiereLookAndFeel

        public CompiereLookAndFeel()
        Constructor
    • Method Detail

      • 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
      • 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.