|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.plaf.CompierePLAF
public final class CompierePLAF
Variable Pluggable Look And Feel. Provides an easy access to the required currently active PLAF information
| Field Summary | |
|---|---|
static String |
BACKGROUND
Key of Client Property to paint in CompiereColor |
static String |
BACKGROUND_FILL
Key of Client Property for Rectangle Items - if exists, the standard background is used |
static String |
TABLEVEL
Key of Client Property for CPanel |
static String |
VERSION
Version tag |
| Constructor Summary | |
|---|---|
CompierePLAF()
|
|
| Method Summary | |
|---|---|
static CButton |
getCancelButton()
Create Cancel Button |
static Color |
getFieldBackground_Error()
Return Error field background (CompiereTheme) |
static Color |
getFieldBackground_Inactive()
Return Inactive field background color (CompiereTheme) |
static Color |
getFieldBackground_Mandatory()
Return Mandatory field background color (CompiereTheme) |
static Color |
getFieldBackground_Normal()
Return Normal field background color "text". |
static Font |
getFont_Field()
Get Field Font |
static Font |
getFont_Header()
Get Header Font (window/label font) |
static Font |
getFont_Label()
Get Label Font |
static Font |
getFont_Small()
Get Small (report) Font |
static Color |
getFormBackground()
Return form background color "control". |
static Color |
getInfoBackground()
Info Background Color "info" Windows = info (light yellow) |
static CButton |
getOKButton()
Create OK Button |
static ValueNamePair[] |
getPLAFs()
Get available Look And Feels |
static Color |
getPrimary1()
Get Primary1 |
static Color |
getPrimary2()
Get Primary2 |
static Color |
getPrimary3()
Get Primary3 |
static Color |
getSecondary1()
Get Secondary 1 |
static Color |
getSecondary2()
Get Secondary 2 |
static Color |
getSecondary3()
Get Secondary 3 |
static Color |
getTextColor_Issue()
Issue Text Foreground Color (Theme) |
static Color |
getTextColor_Label()
Label Text foreground Color "controlText" Windows = black |
static Color |
getTextColor_Normal()
Normal field text foreground color "textText" Windows = black |
static Color |
getTextColor_OK()
OK Text Foreground Color (Theme) |
static ValueNamePair[] |
getThemes()
Get the list of available Metal Themes if the current L&F is a Metal L&F |
static boolean |
isActive()
Is CompiereL&F the active L&F |
static void |
main(String[] args)
Start Class With Compiere Look or Compiere PLAF Editor |
static void |
printPLAFDefaults()
Print current UIDefaults |
static void |
reset(Window win)
Reset PLAF Settings |
static void |
setPLAF(ValueNamePair plaf,
ValueNamePair theme,
Window win)
Set PLAF and update Ini |
static void |
setPLAF(Window win)
Set PLAF based on Ini Properties |
static void |
showCenterScreen(Window window)
Center Window on Screen and show it |
static void |
updateUI()
Update UI of all components in application |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION
public static final String BACKGROUND
public static final String BACKGROUND_FILL
public static final String TABLEVEL
| Constructor Detail |
|---|
public CompierePLAF()
| Method Detail |
|---|
public static Color getFieldBackground_Normal()
public static Color getFieldBackground_Error()
public static Color getFieldBackground_Mandatory()
public static Color getFieldBackground_Inactive()
public static Color getFormBackground()
public static Color getInfoBackground()
public static Color getTextColor_Normal()
public static Color getTextColor_OK()
public static Color getTextColor_Issue()
public static Color getTextColor_Label()
public static Color getPrimary1()
public static Color getPrimary2()
public static Color getPrimary3()
public static Color getSecondary1()
public static Color getSecondary2()
public static Color getSecondary3()
public static Font getFont_Header()
public static Font getFont_Field()
public static Font getFont_Label()
public static Font getFont_Small()
public static ValueNamePair[] getPLAFs()
public static ValueNamePair[] getThemes()
public static void setPLAF(Window win)
win - Optional Window
public static void setPLAF(ValueNamePair plaf,
ValueNamePair theme,
Window win)
plaf - ValueNamePair of the PLAF to be settheme - Optional Theme namewin - Optional Windowpublic static void updateUI()
public static void reset(Window win)
win - Window to be resetpublic static void printPLAFDefaults()
public static boolean isActive()
public static CButton getOKButton()
public static CButton getCancelButton()
public static void showCenterScreen(Window window)
window - windowpublic static void main(String[] args)
args - first parameter is class to start, if none start PLAF Editor
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||