Compiere Looks 1.2.1

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 via

  CompierePanelUI.setDefaultBackground (new CompiereColor());
  
The individual Panel can set the background type by setting the parameter via
  putClientProperty(CompierePanelUI.BACKGROUND, new CompiereColor());
  

Version:
$Id: CompierePanelUI.java,v 1.11 2002/08/12 01:55:15 danb Exp $
Author:
Jorg Janke
See Also:
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

CompierePanelUI

public CompierePanelUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Static Create UI

Parameters:
c - Vomponent
Returns:
Compiere Panel UI

installDefaults

protected void installDefaults(JPanel p)
Install Defaults

Overrides:
installDefaults in class BasicPanelUI
Parameters:
p - Panel

update

public void update(Graphics g,
                   JComponent c)
Update - This method is invoked by 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.

Overrides:
update in class ComponentUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted
See Also:
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent), JComponent.paintComponent(java.awt.Graphics)

setDefaultBackground

public static void setDefaultBackground(CompiereColor bg)
Set Default Background

Parameters:
bg - Background Color

getDefaultBackground

public static CompiereColor getDefaultBackground()
Get Default Background

Returns:
Background

setSetDefault

public static void setSetDefault(boolean setDefault)
Set Default Background

Parameters:
setDefault - if trie, the background will be set to the default color

isSetDefault

public static boolean isSetDefault()
Is the Default Background set by default

Returns:
true if default background is set

Compiere Looks 1.2.1

Copyright (c) 1999-2003 ComPiere, Inc. - Author: Jorg Janke