|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.metal.MetalTheme
org.compiere.plaf.CompiereTheme
public class CompiereTheme
Compiere User definable Theme (if used in Metal L&F). In other Environments, it provides UI extensions (e.g. Error Color)
| Field Summary | |
|---|---|
protected static ColorUIResource |
black
Black |
protected static FontUIResource |
controlFont
Control font |
protected static ColorUIResource |
error
Background for fields in error |
static String |
FONT_DEFAULT
Default Font |
static int |
FONT_SIZE
Default Font Size |
protected static ColorUIResource |
inactive
Background for inactive fields |
protected static ColorUIResource |
info
Background for info fields |
protected static Logger |
log
Logger |
protected static ColorUIResource |
mandatory
Background for mandatory fields |
protected static FontUIResource |
menuFont
Menu font |
protected static String |
P_CompiereColor
Background Color |
protected static ColorUIResource |
primary0
Blue 51,51,102 |
protected static ColorUIResource |
primary1
Blue 102, 102, 153 |
protected static ColorUIResource |
primary2
Blue 153, 153, 204 |
protected static ColorUIResource |
primary3
Blue 204, 204, 255 |
protected static String |
s_name
Theme Name |
protected static CompiereTheme |
s_theme
Active Theme |
protected ColorUIResource |
secondary0
Black |
protected static ColorUIResource |
secondary1
Gray 102, 102, 102 |
protected static ColorUIResource |
secondary2
Gray 153, 153, 153 |
protected static ColorUIResource |
secondary3
BlueGray 214, 224, 234 - background |
protected ColorUIResource |
secondary4
White |
protected static FontUIResource |
smallFont
Small font |
protected static FontUIResource |
systemFont
System font |
protected static ColorUIResource |
txt_error
Foreground Text Error |
protected static ColorUIResource |
txt_ok
Foreground Text OK |
protected static FontUIResource |
userFont
User font |
protected static ColorUIResource |
white
White |
protected static FontUIResource |
windowFont
Window Title font |
| Constructor Summary | |
|---|---|
CompiereTheme()
Constructor - nop |
|
| 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 |
ColorUIResource |
getBlack()
|
static String |
getColorAsString(Color c)
Parses Color into String representation. |
FontUIResource |
getControlTextFont()
|
FontUIResource |
getMenuTextFont()
|
String |
getName()
Return Theme Name |
ColorUIResource |
getPrimary1()
Get Primary 1 (blue in default Metal Theme) |
ColorUIResource |
getPrimary2()
|
ColorUIResource |
getPrimary3()
|
ColorUIResource |
getSecondary0()
Get Seconary 1 (gray in default Metal Theme) |
ColorUIResource |
getSecondary1()
|
ColorUIResource |
getSecondary2()
|
ColorUIResource |
getSecondary3()
|
ColorUIResource |
getSecondary4()
|
FontUIResource |
getSubTextFont()
|
FontUIResource |
getSystemTextFont()
|
FontUIResource |
getUserTextFont()
|
ColorUIResource |
getWhite()
|
FontUIResource |
getWindowTitleFont()
|
static void |
load()
Load Properties from Ini |
protected static ColorUIResource |
parseColor(String information,
ColorUIResource stdColor)
Parse Color. |
static void |
reset()
Reset Info in Properties |
static void |
save()
Save information in Properties |
protected void |
setDefault()
Set Default Colors |
static void |
setTheme()
Set Theme to current Metal Theme and copy it |
static void |
setTheme(MetalTheme copyFrom,
boolean flat)
Set Theme to current Metal Theme and copy it |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static String s_name
protected static Logger log
protected static CompiereTheme s_theme
protected static ColorUIResource primary0
protected static ColorUIResource primary1
protected static ColorUIResource primary2
protected static ColorUIResource primary3
protected final ColorUIResource secondary0
protected static ColorUIResource secondary1
protected static ColorUIResource secondary2
protected static ColorUIResource secondary3
protected final ColorUIResource secondary4
protected static ColorUIResource black
protected static ColorUIResource white
protected static ColorUIResource mandatory
protected static ColorUIResource error
protected static ColorUIResource inactive
protected static ColorUIResource info
protected static ColorUIResource txt_ok
protected static ColorUIResource txt_error
protected static FontUIResource controlFont
protected static FontUIResource systemFont
protected static FontUIResource userFont
protected static FontUIResource smallFont
protected static FontUIResource windowFont
protected static FontUIResource menuFont
public static final String FONT_DEFAULT
public static final int FONT_SIZE
protected static final String P_CompiereColor
| Constructor Detail |
|---|
public CompiereTheme()
| Method Detail |
|---|
public String getName()
getName in class MetalThemepublic String toString()
toString in class Objectprotected void setDefault()
public static void setTheme()
public static void setTheme(MetalTheme copyFrom,
boolean flat)
copyFrom - themeflat - flat colorspublic ColorUIResource getPrimary1()
getPrimary1 in class MetalThemepublic ColorUIResource getPrimary2()
getPrimary2 in class MetalThemepublic ColorUIResource getPrimary3()
getPrimary3 in class MetalThemepublic ColorUIResource getSecondary0()
public ColorUIResource getSecondary1()
getSecondary1 in class MetalThemepublic ColorUIResource getSecondary2()
getSecondary2 in class MetalThemepublic ColorUIResource getSecondary3()
getSecondary3 in class MetalThemepublic ColorUIResource getSecondary4()
public ColorUIResource getBlack()
getBlack in class MetalThemepublic ColorUIResource getWhite()
getWhite in class MetalThemeprotected static FontUIResource _getControlTextFont()
public FontUIResource getControlTextFont()
getControlTextFont in class MetalThemeprotected static FontUIResource _getSystemTextFont()
public FontUIResource getSystemTextFont()
getSystemTextFont in class MetalThemeprotected static FontUIResource _getUserTextFont()
public FontUIResource getUserTextFont()
getUserTextFont in class MetalThemeprotected static FontUIResource _getMenuTextFont()
public FontUIResource getMenuTextFont()
getMenuTextFont in class MetalThemeprotected static FontUIResource _getWindowTitleFont()
public FontUIResource getWindowTitleFont()
getWindowTitleFont in class MetalThemeprotected static FontUIResource _getSubTextFont()
public FontUIResource getSubTextFont()
getSubTextFont in class MetalThemepublic static void save()
public static String getColorAsString(Color c)
c - Color
parseColor(java.lang.String, javax.swing.plaf.ColorUIResource)public static void load()
public static void reset()
protected static ColorUIResource parseColor(String information,
ColorUIResource stdColor)
Color - [r=102,g=102,b=153,a=0]
information - string information to be parsedstdColor - color used if info cannot parsed
getColorAsString(java.awt.Color)
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||