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 ComponentUIcreateUI(JComponent c)Static Create UIprotected voidinstallDefaults(JPanel p)Install Defaultsvoidupdate(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:
installDefaultsin classBasicPanelUI- Parameters:
p- Panel
-
update
public void update(Graphics g, JComponent c)
Update. This method is invoked byJComponentwhen the specified component is being painted. By default this method will fill the specified component with its background color (if itsopaqueproperty istrue) and then immediately callpaint.- Overrides:
updatein classComponentUI- Parameters:
g- theGraphicscontext in which to paintc- the component being painted- See Also:
JComponent.paintComponent(java.awt.Graphics)
-
-