QJCC homepage

biz.chitec.quarterback.swing
Class ListKeyInputHandler.BasicKIHCellRendererUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.LabelUI
          extended byjavax.swing.plaf.basic.BasicLabelUI
              extended bybiz.chitec.quarterback.swing.ListKeyInputHandler.BasicKIHCellRendererUI
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener
Enclosing class:
ListKeyInputHandler

public static class ListKeyInputHandler.BasicKIHCellRendererUI
extends javax.swing.plaf.basic.BasicLabelUI

UI delegate with implementation. The UI delegate for the ListKeyInputHandler.KIHCellRenderer class is derived from the BasicLabelUI, which is also used for normal lists. Therefore, maximum compatibility with the normal representation of a JList is archived. In fact, the renderer overrides only one method of the standard renderer, uses only the default entries for colors, and does change nothing about the fonts.


Nested Class Summary
 
Nested classes inherited from class javax.swing.plaf.basic.BasicLabelUI
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
 
Constructor Summary
ListKeyInputHandler.BasicKIHCellRendererUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          UI delegate relevant method.
protected  void paintEnabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
          Draw the textual part of the content of list entry.
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paint, paintDisabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListKeyInputHandler.BasicKIHCellRendererUI

public ListKeyInputHandler.BasicKIHCellRendererUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
UI delegate relevant method.


paintEnabledText

protected void paintEnabledText(javax.swing.JLabel l,
                                java.awt.Graphics g,
                                java.lang.String s,
                                int textX,
                                int textY)
Draw the textual part of the content of list entry. This is the actual drawing method which inverts the first part of the string to be written in case of accordance to the compare string of the ListKeyInputHandler.


QJCC homepage