org.salespointframework.desktop
Class JListView.CatListUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ListUI
          extended by org.salespointframework.desktop.JListView.CatListUI
Enclosing class:
JListView

private class JListView.CatListUI
extends javax.swing.plaf.ListUI

custom ListUI for layout

Since:
4.0
Author:
Thomas Kissinger

Field Summary
protected  javax.swing.event.ListDataListener dataListener
           
protected  java.awt.event.KeyListener keyListener
           
protected  java.util.List<java.awt.Component> listComponents
           
protected  java.util.List<java.awt.Rectangle> listLayout
           
protected  java.awt.event.MouseListener mouseListener
           
protected  javax.swing.CellRendererPane renderPane
           
protected  javax.swing.event.ListSelectionListener selectionListener
           
 
Constructor Summary
private JListView.CatListUI()
           
 
Method Summary
private  void adjustToCenter(int from, int to, int width, int x)
           
protected  void doRun(javax.swing.JList list)
           
 java.awt.Rectangle getCellBounds(javax.swing.JList list, int index1, int index2)
           
(package private)  javax.swing.InputMap getInputMap(int condition, javax.swing.JList list)
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
 java.awt.Point indexToLocation(javax.swing.JList list, int index)
           
protected  void installKeyboardActions(javax.swing.JList list)
           
 void installUI(javax.swing.JComponent c)
           
 int locationToIndex(javax.swing.JList list, java.awt.Point location)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
private  void paintImpl(java.awt.Graphics g, javax.swing.JComponent c)
           
private  void setInternalSelection(javax.swing.JList list, int index)
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listLayout

protected java.util.List<java.awt.Rectangle> listLayout

listComponents

protected java.util.List<java.awt.Component> listComponents

renderPane

protected javax.swing.CellRendererPane renderPane

mouseListener

protected java.awt.event.MouseListener mouseListener

selectionListener

protected javax.swing.event.ListSelectionListener selectionListener

dataListener

protected javax.swing.event.ListDataListener dataListener

keyListener

protected java.awt.event.KeyListener keyListener
Constructor Detail

JListView.CatListUI

private JListView.CatListUI()
Method Detail

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI

paintImpl

private void paintImpl(java.awt.Graphics g,
                       javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

setInternalSelection

private void setInternalSelection(javax.swing.JList list,
                                  int index)

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

adjustToCenter

private void adjustToCenter(int from,
                            int to,
                            int width,
                            int x)

doRun

protected void doRun(javax.swing.JList list)

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.ComponentUI

getCellBounds

public java.awt.Rectangle getCellBounds(javax.swing.JList list,
                                        int index1,
                                        int index2)
Specified by:
getCellBounds in class javax.swing.plaf.ListUI

indexToLocation

public java.awt.Point indexToLocation(javax.swing.JList list,
                                      int index)
Specified by:
indexToLocation in class javax.swing.plaf.ListUI

locationToIndex

public int locationToIndex(javax.swing.JList list,
                           java.awt.Point location)
Specified by:
locationToIndex in class javax.swing.plaf.ListUI

installKeyboardActions

protected void installKeyboardActions(javax.swing.JList list)

getInputMap

javax.swing.InputMap getInputMap(int condition,
                                 javax.swing.JList list)