Class AdempiereLookAndFeel

  • All Implemented Interfaces:
    Serializable

    public class AdempiereLookAndFeel
    extends com.jgoodies.looks.plastic.Plastic3DLookAndFeel
    Adempiere Look & Feel, based on JGoodies look and feel
    Author:
    vpj-cd, Low Heng Sin
    See Also:
    Serialized Form
    • Constructor Detail

      • AdempiereLookAndFeel

        public AdempiereLookAndFeel()
        Constructor
    • Method Detail

      • getName

        public String getName()
        The Name
        Overrides:
        getName in class com.jgoodies.looks.plastic.Plastic3DLookAndFeel
        Returns:
        Name
      • getID

        public String getID()
        The ID
        Overrides:
        getID in class com.jgoodies.looks.plastic.Plastic3DLookAndFeel
        Returns:
        Name
      • getDescription

        public String getDescription()
        The Description
        Overrides:
        getDescription in class com.jgoodies.looks.plastic.Plastic3DLookAndFeel
        Returns:
        description
      • 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 com.jgoodies.looks.plastic.PlasticLookAndFeel
        Parameters:
        table - UI Defaults
      • initSystemColorDefaults

        protected void initSystemColorDefaults​(UIDefaults table)
        For overwriting Component defaults
        Overrides:
        initSystemColorDefaults in class com.jgoodies.looks.plastic.PlasticLookAndFeel
        Parameters:
        table -
      • initComponentDefaults

        protected void initComponentDefaults​(UIDefaults table)
        For overwriting Component defaults
        Overrides:
        initComponentDefaults in class com.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 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.