com.sas.swing.visuals.tableview
Class BasicTableViewUI

com.sas.swing.visuals.tableview.BasicTableViewUI
Direct Known Subclasses:
BasicOLAPTableViewUI

public class BasicTableViewUI


Nested Class Summary
 class BasicTableViewUI.FocusHandler
          This inner class is marked "public" due to a compiler bug.
 class BasicTableViewUI.MouseInputHandler
           
protected  class BasicTableViewUI.PropertyChangeHandler
          PropertyChangeListener for the table.
 
Field Summary
protected static java.awt.Rectangle heldClip
           
protected static java.awt.Rectangle nonHeldRect
           
protected  java.beans.PropertyChangeListener propertyChangeListener
           
protected  TableView table
           
 
Constructor Summary
BasicTableViewUI()
           
 
Method Summary
protected  int calculateColumnIndex(java.awt.Point p)
           
protected  int calculateRowIndex(java.awt.Point p)
           
protected  java.awt.event.FocusListener createFocusListener()
          Creates the focus listener for handling keyboard navigation in the TableView.
protected  javax.swing.event.MouseInputListener createMouseInputListener()
          Creates the mouse listener for the TableView.
protected  java.beans.PropertyChangeListener createPropertyChangeListener()
          Creates the property change listener for the TableView.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
          Return the maximum size of the table.
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
          Return the minimum size of the table.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Return the preferred size of the table.
protected  void installKeyboardActions()
          Register all keyboard actions on the TableView.
protected  void installListeners()
          Attaches listeners to the TableView.
 void installUI(javax.swing.JComponent c)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void uninstallListeners()
           
 

Field Detail

table

protected TableView table

propertyChangeListener

protected java.beans.PropertyChangeListener propertyChangeListener

nonHeldRect

protected static java.awt.Rectangle nonHeldRect

heldClip

protected static java.awt.Rectangle heldClip
Constructor Detail

BasicTableViewUI

public BasicTableViewUI()
Method Detail

calculateColumnIndex

protected int calculateColumnIndex(java.awt.Point p)

calculateRowIndex

protected int calculateRowIndex(java.awt.Point p)

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

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

installListeners

protected void installListeners()
Attaches listeners to the TableView.

Overrides:
installListeners in class javax.swing.plaf.basic.BasicTableUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicTableUI

createMouseInputListener

protected javax.swing.event.MouseInputListener createMouseInputListener()
Creates the mouse listener for the TableView.

Overrides:
createMouseInputListener in class javax.swing.plaf.basic.BasicTableUI

createFocusListener

protected java.awt.event.FocusListener createFocusListener()
Creates the focus listener for handling keyboard navigation in the TableView.

Overrides:
createFocusListener in class javax.swing.plaf.basic.BasicTableUI

createPropertyChangeListener

protected java.beans.PropertyChangeListener createPropertyChangeListener()
Creates the property change listener for the TableView.


installKeyboardActions

protected void installKeyboardActions()
Register all keyboard actions on the TableView.

Overrides:
installKeyboardActions in class javax.swing.plaf.basic.BasicTableUI

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Return the minimum size of the table. The minimum height is the row height (plus inter-cell spacing) times the number of rows. The minimum width is the sum of the minimum widths of each column (plus inter-cell spacing).

Overrides:
getMinimumSize in class javax.swing.plaf.basic.BasicTableUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Return the preferred size of the table. The preferred height is the row height (plus inter-cell spacing) times the number of rows. The preferred width is the sum of the preferred widths of each column (plus inter-cell spacing).

Overrides:
getPreferredSize in class javax.swing.plaf.basic.BasicTableUI

getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Return the maximum size of the table. The maximum height is the row height (plus inter-cell spacing) times the number of rows. The maximum width is the sum of the maximum widths of each column (plus inter-cell spacing).

Overrides:
getMaximumSize in class javax.swing.plaf.basic.BasicTableUI

paint

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



Copyright © 2009 SAS Institute Inc. All Rights Reserved.