com.alee.laf.table
Class WebTableUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableUI
          extended by javax.swing.plaf.basic.BasicTableUI
              extended by com.alee.laf.table.WebTableUI

public class WebTableUI
extends javax.swing.plaf.basic.BasicTableUI

Custom UI for JTable component.

Author:
Mikle Garin

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableUI
javax.swing.plaf.basic.BasicTableUI.FocusHandler, javax.swing.plaf.basic.BasicTableUI.KeyHandler, javax.swing.plaf.basic.BasicTableUI.MouseInputHandler
 
Field Summary
protected  AncestorAdapter ancestorAdapter
          Table listeners.
protected  java.awt.event.MouseAdapter mouseAdapter
           
protected  java.awt.Point rolloverCell
          Runtime variables.
 
Fields inherited from class javax.swing.plaf.basic.BasicTableUI
focusListener, keyListener, mouseInputListener, rendererPane, table
 
Constructor Summary
WebTableUI()
           
 
Method Summary
protected  void configureEnclosingScrollPaneUI(javax.swing.JTable table)
          Configures table scroll pane with UI specific settings.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns an instance of the WebTreeUI for the specified component.
 java.awt.Color getScrollPaneBackgroundColor()
           
protected  ToolTipProvider<? extends WebTable> getToolTipProvider()
          Returns custom WebLaF tooltip provider.
 void installUI(javax.swing.JComponent c)
          Installs UI in the specified component.
 void setScrollPaneBackgroundColor(java.awt.Color scrollPaneBackgroundColor)
           
 void uninstallUI(javax.swing.JComponent c)
          Uninstalls UI from the specified component.
 
Methods inherited from class javax.swing.plaf.basic.BasicTableUI
createFocusListener, createKeyListener, createMouseInputListener, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installKeyboardActions, installListeners, paint, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
 
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
 

Field Detail

ancestorAdapter

protected AncestorAdapter ancestorAdapter
Table listeners.


mouseAdapter

protected java.awt.event.MouseAdapter mouseAdapter

rolloverCell

protected java.awt.Point rolloverCell
Runtime variables.

Constructor Detail

WebTableUI

public WebTableUI()
Method Detail

getScrollPaneBackgroundColor

public java.awt.Color getScrollPaneBackgroundColor()

setScrollPaneBackgroundColor

public void setScrollPaneBackgroundColor(java.awt.Color scrollPaneBackgroundColor)

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Returns an instance of the WebTreeUI for the specified component. This tricky method is used by UIManager to create component UIs when needed.

Parameters:
c - component that will use UI instance
Returns:
instance of the WebTreeUI

installUI

public void installUI(javax.swing.JComponent c)
Installs UI in the specified component.

Overrides:
installUI in class javax.swing.plaf.basic.BasicTableUI
Parameters:
c - component for this UI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.

Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicTableUI
Parameters:
c - component with this UI

getToolTipProvider

protected ToolTipProvider<? extends WebTable> getToolTipProvider()
Returns custom WebLaF tooltip provider.

Returns:
custom WebLaF tooltip provider

configureEnclosingScrollPaneUI

protected void configureEnclosingScrollPaneUI(javax.swing.JTable table)
Configures table scroll pane with UI specific settings.

Parameters:
table - table to process