Adempiere 3.5.2a

org.adempiere.plaf
Class AdempiereTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by com.jgoodies.looks.plastic.PlasticTheme
              extended by org.adempiere.plaf.AdempiereTheme
Direct Known Subclasses:
AdempiereThemeInnova

public class AdempiereTheme
extends com.jgoodies.looks.plastic.PlasticTheme

A theme based on GTK2-Gilouche and tango project iconset. It has been optimized to work with Suse SLED 10 default desktop settings.

Version:
$Revision: 1.0 $
Author:
vpj-cd, Low Heng Sin - Fixed invisible disactive component issue - Use red instead of green as background for error field

Field Summary
static ColorUIResource black
          Black
static FontUIResource controlFont
          Control font
static ColorUIResource error
          Background for fields in error
static String FONT_DEFAULT
          Default Font
static int FONT_SIZE
          Default Font Size
static ColorUIResource inactive
          Background for inactive fields
static ColorUIResource info
          Background for info fields
protected static Logger log
          Logger
static ColorUIResource mandatory
          Background for mandatory fields
static FontUIResource menuFont
          Menu font
static String NAME
           
static ColorUIResource primary0
          Blue 51,51,102
static ColorUIResource primary1
          Blue 102, 102, 153
static ColorUIResource primary2
          Blue 153, 153, 204
static ColorUIResource primary3
          Blue 204, 204, 255
protected static String s_name
          Theme Name
protected static AdempiereTheme s_theme
          Active Theme
 ColorUIResource secondary0
          Black
static ColorUIResource secondary1
          Gray 102, 102, 102
static ColorUIResource secondary2
          Gray 153, 153, 153
static ColorUIResource secondary3
          BlueGray 214, 224, 234 - background
 ColorUIResource secondary4
          White
static FontUIResource smallFont
          Small font
static FontUIResource systemFont
          System font
static ColorUIResource txt_error
          Foreground Text Error
static ColorUIResource txt_ok
          Foreground Text OK
static FontUIResource userFont
          User font
static ColorUIResource white
          White
static FontUIResource windowFont
          Window Title font
 
Fields inherited from class com.jgoodies.looks.plastic.PlasticTheme
BLACK, BRIGHTEN_START, BRIGHTEN_STOP, DARKEN_START, DARKEN_STOP, LT_BRIGHTEN_STOP, LT_DARKEN_STOP, WHITE
 
Constructor Summary
AdempiereTheme()
           
 
Method Summary
protected static FontUIResource _getControlTextFont()
          Control Font (plain)
protected static FontUIResource _getMenuTextFont()
          Menu
protected static FontUIResource _getSubTextFont()
          Sub Text
protected static FontUIResource _getSystemTextFont()
          System Font
protected static FontUIResource _getUserTextFont()
          User Font
protected static FontUIResource _getWindowTitleFont()
          Window Title
 void addCustomEntriesToTable(UIDefaults table)
           
 ColorUIResource getBlack()
           
static String getColorAsString(Color c)
          Parses Color into String representation.
 FontUIResource getControlTextFont()
           
 ColorUIResource getFocusColor()
           
 ColorUIResource getMenuItemBackground()
           
 ColorUIResource getMenuSelectedBackground()
           
 ColorUIResource getMenuSelectedForeground()
           
 FontUIResource getMenuTextFont()
           
 String getName()
          Return Theme Name
 ColorUIResource getPrimary1()
          Get Primary 1 (blue in default Metal Theme)
 ColorUIResource getPrimary2()
           
 ColorUIResource getPrimary3()
           
 ColorUIResource getPrimaryControlShadow()
           
 ColorUIResource getSecondary0()
          Get Seconary 1 (gray in default Metal Theme)
 ColorUIResource getSecondary1()
           
 ColorUIResource getSecondary2()
           
 ColorUIResource getSecondary3()
           
 ColorUIResource getSecondary4()
           
 FontUIResource getSubTextFont()
           
 FontUIResource getSystemTextFont()
           
 ColorUIResource getToggleButtonCheckColor()
           
 FontUIResource getUserTextFont()
           
 ColorUIResource getWhite()
           
 FontUIResource getWindowTitleFont()
           
 void setDefault()
          Set Default Colors
 String toString()
          String Representation
 
Methods inherited from class com.jgoodies.looks.plastic.PlasticTheme
equals, getFontSet, getMenuForeground, getMenuItemSelectedBackground, getMenuItemSelectedForeground, getSimpleInternalFrameBackground, getSimpleInternalFrameForeground, getSystemTextColor, getTitleTextColor, getTitleTextFont, hashCode
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getSeparatorBackground, getSeparatorForeground, getTextHighlightColor, getUserTextColor, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

s_name

protected static String s_name
Theme Name


NAME

public static final String NAME

log

protected static Logger log
Logger


s_theme

protected static AdempiereTheme s_theme
Active Theme


primary0

public static ColorUIResource primary0
Blue 51,51,102


primary1

public static ColorUIResource primary1
Blue 102, 102, 153


primary2

public static ColorUIResource primary2
Blue 153, 153, 204


primary3

public static ColorUIResource primary3
Blue 204, 204, 255


secondary0

public final ColorUIResource secondary0
Black


secondary1

public static ColorUIResource secondary1
Gray 102, 102, 102


secondary2

public static ColorUIResource secondary2
Gray 153, 153, 153


secondary3

public static ColorUIResource secondary3
BlueGray 214, 224, 234 - background


secondary4

public final ColorUIResource secondary4
White


black

public static ColorUIResource black
Black


white

public static ColorUIResource white
White


mandatory

public static ColorUIResource mandatory
Background for mandatory fields


error

public static ColorUIResource error
Background for fields in error


inactive

public static ColorUIResource inactive
Background for inactive fields


info

public static ColorUIResource info
Background for info fields


txt_ok

public static ColorUIResource txt_ok
Foreground Text OK


txt_error

public static ColorUIResource txt_error
Foreground Text Error


controlFont

public static FontUIResource controlFont
Control font


systemFont

public static FontUIResource systemFont
System font


userFont

public static FontUIResource userFont
User font


smallFont

public static FontUIResource smallFont
Small font


windowFont

public static FontUIResource windowFont
Window Title font


menuFont

public static FontUIResource menuFont
Menu font


FONT_DEFAULT

public static final String FONT_DEFAULT
Default Font

See Also:
Constant Field Values

FONT_SIZE

public static int FONT_SIZE
Default Font Size

Constructor Detail

AdempiereTheme

public AdempiereTheme()
Method Detail

getName

public String getName()
Return Theme Name

Overrides:
getName in class DefaultMetalTheme
Returns:
Theme Name

toString

public String toString()
String Representation

Overrides:
toString in class Object
Returns:
info

getPrimary1

public ColorUIResource getPrimary1()
Get Primary 1 (blue in default Metal Theme)

Overrides:
getPrimary1 in class DefaultMetalTheme
Returns:
color

getPrimary2

public ColorUIResource getPrimary2()
Overrides:
getPrimary2 in class DefaultMetalTheme

getPrimary3

public ColorUIResource getPrimary3()
Overrides:
getPrimary3 in class DefaultMetalTheme

getSecondary0

public ColorUIResource getSecondary0()
Get Seconary 1 (gray in default Metal Theme)

Returns:
color

getSecondary1

public ColorUIResource getSecondary1()
Overrides:
getSecondary1 in class DefaultMetalTheme

getSecondary2

public ColorUIResource getSecondary2()
Overrides:
getSecondary2 in class DefaultMetalTheme

getSecondary3

public ColorUIResource getSecondary3()
Overrides:
getSecondary3 in class DefaultMetalTheme

getSecondary4

public ColorUIResource getSecondary4()

getBlack

public ColorUIResource getBlack()
Overrides:
getBlack in class com.jgoodies.looks.plastic.PlasticTheme

getWhite

public ColorUIResource getWhite()
Overrides:
getWhite in class com.jgoodies.looks.plastic.PlasticTheme

_getControlTextFont

protected static FontUIResource _getControlTextFont()
Control Font (plain)

Returns:
font

getControlTextFont

public FontUIResource getControlTextFont()
Overrides:
getControlTextFont in class com.jgoodies.looks.plastic.PlasticTheme

_getSystemTextFont

protected static FontUIResource _getSystemTextFont()
System Font

Returns:
font

getSystemTextFont

public FontUIResource getSystemTextFont()
Overrides:
getSystemTextFont in class com.jgoodies.looks.plastic.PlasticTheme

_getUserTextFont

protected static FontUIResource _getUserTextFont()
User Font

Returns:
font

getUserTextFont

public FontUIResource getUserTextFont()
Overrides:
getUserTextFont in class com.jgoodies.looks.plastic.PlasticTheme

_getMenuTextFont

protected static FontUIResource _getMenuTextFont()
Menu

Returns:
font

getMenuTextFont

public FontUIResource getMenuTextFont()
Overrides:
getMenuTextFont in class com.jgoodies.looks.plastic.PlasticTheme

_getWindowTitleFont

protected static FontUIResource _getWindowTitleFont()
Window Title

Returns:
font

getWindowTitleFont

public FontUIResource getWindowTitleFont()
Overrides:
getWindowTitleFont in class com.jgoodies.looks.plastic.PlasticTheme

_getSubTextFont

protected static FontUIResource _getSubTextFont()
Sub Text

Returns:
font

getSubTextFont

public FontUIResource getSubTextFont()
Overrides:
getSubTextFont in class com.jgoodies.looks.plastic.PlasticTheme

getColorAsString

public static String getColorAsString(Color c)
Parses Color into String representation. Required as SystemColors and Alpha Colors have different formats

Parameters:
c - Color
Returns:
[r=102,g=102,b=153,a=255]
See Also:
#parseColor

setDefault

public void setDefault()
Set Default Colors


getFocusColor

public ColorUIResource getFocusColor()
Overrides:
getFocusColor in class MetalTheme

getPrimaryControlShadow

public ColorUIResource getPrimaryControlShadow()
Overrides:
getPrimaryControlShadow in class MetalTheme

getMenuSelectedBackground

public ColorUIResource getMenuSelectedBackground()
Overrides:
getMenuSelectedBackground in class MetalTheme

getMenuSelectedForeground

public ColorUIResource getMenuSelectedForeground()
Overrides:
getMenuSelectedForeground in class MetalTheme

getMenuItemBackground

public ColorUIResource getMenuItemBackground()
Overrides:
getMenuItemBackground in class com.jgoodies.looks.plastic.PlasticTheme

getToggleButtonCheckColor

public ColorUIResource getToggleButtonCheckColor()
Overrides:
getToggleButtonCheckColor in class com.jgoodies.looks.plastic.PlasticTheme

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults table)
Overrides:
addCustomEntriesToTable in class MetalTheme

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.