|
Compiere Looks 1.2.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.PanelUI
|
+--javax.swing.plaf.basic.BasicPanelUI
|
+--org.compiere.plaf.CompierePanelUI
Panel UI. The default properties can be set via
CompierePanelUI.setDefaultBackground (new CompiereColor());The individual Panel can set the background type by setting the parameter via
putClientProperty(CompierePanelUI.BACKGROUND, new CompiereColor());
CPanel| Constructor Summary | |
CompierePanelUI()
|
|
| Method Summary | |
static ComponentUI |
createUI(JComponent c)
Static Create UI |
static CompiereColor |
getDefaultBackground()
Get Default Background |
protected void |
installDefaults(JPanel p)
Install Defaults |
static boolean |
isSetDefault()
Is the Default Background set by default |
static void |
setDefaultBackground(CompiereColor bg)
Set Default Background |
static void |
setSetDefault(boolean setDefault)
Set Default Background |
void |
update(Graphics g,
JComponent c)
Update - This method is invoked by JComponent when the specified
component is being painted. |
| Methods inherited from class javax.swing.plaf.basic.BasicPanelUI |
installUI, uninstallDefaults, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompierePanelUI()
| Method Detail |
public static ComponentUI createUI(JComponent c)
c - Vomponent
protected void installDefaults(JPanel p)
installDefaults in class BasicPanelUIp - Panel
public void update(Graphics g,
JComponent c)
JComponent when the specified
component is being painted.
By default this method will fill the specified component with
its background color (if its opaque property is
true) and then immediately call paint.
update in class ComponentUIg - the Graphics context in which to paintc - the component being paintedComponentUI.paint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)public static void setDefaultBackground(CompiereColor bg)
bg - Background Colorpublic static CompiereColor getDefaultBackground()
public static void setSetDefault(boolean setDefault)
setDefault - if trie, the background will be set to the default colorpublic static boolean isSetDefault()
|
Compiere Looks 1.2.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||