JIDE 3.5.15

com.jidesoft.plaf.basic
Class BasicSortableTableHeaderUIDelegate

java.lang.Object
  extended by com.jidesoft.plaf.TableHeaderUIDelegate
      extended by com.jidesoft.plaf.basic.BasicCellStyleTableHeaderUIDelegate
          extended by com.jidesoft.plaf.basic.BasicSortableTableHeaderUIDelegate
All Implemented Interfaces:
SortListener, MouseListener, MouseMotionListener, PropertyChangeListener, EventListener, TableColumnModelListener, TableModelListener
Direct Known Subclasses:
BasicEditableTableHeaderUIDelegate

public class BasicSortableTableHeaderUIDelegate
extends BasicCellStyleTableHeaderUIDelegate
implements SortListener

The UIDelegate class for SortableTableHeader in all L&F's.

Since:
3.1.0

Field Summary
 
Fields inherited from class com.jidesoft.plaf.basic.BasicCellStyleTableHeaderUIDelegate
_header, _mouseXOffset, _rendererPane
 
Constructor Summary
BasicSortableTableHeaderUIDelegate(JTableHeader header, CellRendererPane rendererPane)
           
 
Method Summary
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paint(Graphics g, JComponent c)
          Paint method to paint the entire header.
 void propertyChange(PropertyChangeEvent evt)
           
 void sortChanged(SortEvent event)
          Called whenever the sorting index of SortableTableModel changed.
 void sortChanging(SortEvent event)
          Called whenever the sorting index of SortableTableModel is about to change.
 void uninstallAllListeners()
          Uninstall all listeners before setting new table header.
 
Methods inherited from class com.jidesoft.plaf.basic.BasicCellStyleTableHeaderUIDelegate
columnAdded, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, createMarginBorder, customizePaint, customizeRendererComponent, dragColumn, getBorderInsets, getHeaderPreferredHeight, getHeaderRenderer, getPreferredHeight, getPreferredSize, getPreferredWidth, getResizingColumn, hasStyledLabelColumn, invalidateCache, isMouseOverPaintArea, paintCell, releaseRendererComponent, resizeColumn, startResizingColumn, tableChanged, viewIndexForColumn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSortableTableHeaderUIDelegate

public BasicSortableTableHeaderUIDelegate(JTableHeader header,
                                          CellRendererPane rendererPane)
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class BasicCellStyleTableHeaderUIDelegate

uninstallAllListeners

public void uninstallAllListeners()
Description copied from class: TableHeaderUIDelegate
Uninstall all listeners before setting new table header. After invoking this method, this UI will not take effect any more.

Overrides:
uninstallAllListeners in class BasicCellStyleTableHeaderUIDelegate

sortChanging

public void sortChanging(SortEvent event)
Description copied from interface: SortListener
Called whenever the sorting index of SortableTableModel is about to change.

Specified by:
sortChanging in interface SortListener
Parameters:
event - the SortEvent

sortChanged

public void sortChanged(SortEvent event)
Description copied from interface: SortListener
Called whenever the sorting index of SortableTableModel changed.

Specified by:
sortChanged in interface SortListener
Parameters:
event - the SortEvent

paint

public void paint(Graphics g,
                  JComponent c)
Paint method to paint the entire header.

Overrides:
paint in class BasicCellStyleTableHeaderUIDelegate
Parameters:
g - the Graphics instance
c - the component to be painted

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class BasicCellStyleTableHeaderUIDelegate

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class BasicCellStyleTableHeaderUIDelegate

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class BasicCellStyleTableHeaderUIDelegate

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class BasicCellStyleTableHeaderUIDelegate

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class BasicCellStyleTableHeaderUIDelegate

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener
Overrides:
mouseEntered in class BasicCellStyleTableHeaderUIDelegate

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener
Overrides:
mouseExited in class BasicCellStyleTableHeaderUIDelegate

JIDE 3.5.15