Package org.compiere.plaf
Class CompierePanelUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PanelUI
-
- javax.swing.plaf.basic.BasicPanelUI
-
- org.compiere.plaf.CompierePanelUI
-
public class CompierePanelUI extends BasicPanelUI
Panel UI. The default properties can be set viaAdempierePanelUI.setDefaultBackground (new AdempiereColor());
The individual Panel can set the background type by setting the parameter viaputClientProperty(AdempierePanelUI.BACKGROUND, new AdempiereColor());
- Version:
- $Id: AdempierePanelUI.java,v 1.2 2006/07/30 00:52:24 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
CPanel
-
-
Constructor Summary
Constructors Constructor Description CompierePanelUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent c)
Static Create UIprotected void
installDefaults(JPanel p)
Install Defaultsvoid
update(Graphics g, JComponent c)
Update.-
Methods inherited from class javax.swing.plaf.basic.BasicPanelUI
getBaseline, getBaselineResizeBehavior, installUI, uninstallDefaults, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
Static Create UI- Parameters:
c
- JComponent- Returns:
- Adempiere Panel UI
-
installDefaults
protected void installDefaults(JPanel p)
Install Defaults- Overrides:
installDefaults
in classBasicPanelUI
- Parameters:
p
- Panel
-
update
public void update(Graphics g, JComponent c)
Update. This method is invoked byJComponent
when the specified component is being painted. By default this method will fill the specified component with its background color (if itsopaque
property istrue
) and then immediately callpaint
.- Overrides:
update
in classComponentUI
- Parameters:
g
- theGraphics
context in which to paintc
- the component being painted- See Also:
JComponent.paintComponent(java.awt.Graphics)
-
-