JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class HiGridUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--com.klg.jclass.higrid.HiGridUI

public class HiGridUI
extends ComponentUI

HiGridUI controls PLAF changes for HiGrid. Affected properties are: header background, foreground, font and border; record background, foreground, font and border; selection color. Five special CellStyleModel objects are modified for PLAF: DefaultHeaderCellStyle, DefaultRecordCellStyle, DefaultFooterCellStyle, DefaultBeforeDetailsCellStyle and DefaultAfterDetailsCellStyle. Modifying these two styles or basing another style on these, will cause all PLAF changes to continue for properties that weren't modified. HiGridUI uses UIResource objects in order to distinguish between PLAF-set properties (which change when the plaf changes) and user-set properties (which don't change).

See Also:
HiGrid.getHeaderCellStyle(), HiGrid.getRecordCellStyle(), HiGrid.getFooterCellStyle(), HiGrid.getBeforeDetailsCellStyle(), HiGrid.getAfterDetailsCellStyle()

Constructor Summary
HiGridUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
          Returns a HiGridUI instance.
protected  void installDefaults(JComponent c)
          Changes the border, font and colors (background, foreground, focus and selection) for HiGrid given the current look and feel.
 void installUI(JComponent c)
          Installs the default settings for the current look and feel.
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiGridUI

public HiGridUI()
Method Detail

installUI

public void installUI(JComponent c)
Installs the default settings for the current look and feel.

Overrides:
installUI in class ComponentUI

installDefaults

protected void installDefaults(JComponent c)
Changes the border, font and colors (background, foreground, focus and selection) for HiGrid given the current look and feel.


createUI

public static ComponentUI createUI(JComponent c)
Returns a HiGridUI instance.


uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

Copyright © 2004 Quest Software Inc..
All rights reserved.