All Packages This Package Class Hierarchy Class Search Index
Class grendel.widgets.ColumnHeader
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----com.sun.java.swing.JComponent | +----grendel.widgets.ColumnHeader
public class ColumnHeader extends com.sun.java.swing.JComponent implements grendel.widgets.ColumnModelListener { // Fields 9 static final int DRAG_THRESHOLD; static final int RESIZE_MARGIN; CellRendererPane fCellRendererPane; ColumnModel fColumnModel; boolean fDynamicUpdate; int fHitOffset; HeaderMouseListener fMouseListener; boolean fOverResize; Column fPressedColumn; // Constructors 1 public ColumnHeader(ColumnModel); // Methods 16 public void columnAdded(ColumnModelEvent); public void columnMarginChanged(ChangeEvent); public void columnMoved(ColumnModelEvent); public void columnRemoved(ColumnModelEvent); public void columnSelectionChanged(ChangeEvent); public void columnWidthChanged(ColumnModelEvent); public boolean getDynamicUpdate(); public Dimension getMaximumSize(); public Dimension getMinimumSize(); public Dimension getPreferredSize(); int hitTest(int); public void paint(Graphics); void paintComponent(Graphics, Component, int, int, int, int); void resizeAndRepaint(); public void setDynamicUpdate(boolean); public void updateUI(); // Inner Classes 1 class HeaderMouseListener }
Fields
fColumnModel
ColumnModel fColumnModel
fCellRendererPane
CellRendererPane fCellRendererPane
RESIZE_MARGIN
static final int RESIZE_MARGIN
DRAG_THRESHOLD
static final int DRAG_THRESHOLD
fDynamicUpdate
boolean fDynamicUpdate
fOverResize
boolean fOverResize
fHitOffset
int fHitOffset
fPressedColumn
Column fPressedColumn
fMouseListener
HeaderMouseListener fMouseListener
Constructors
ColumnHeader
public ColumnHeader(ColumnModel aColumnModel)
Takes a ColumnModel. The ColumnModel is generally shared with whatever is the column header for.
Methods
setDynamicUpdate
public void setDynamicUpdate(boolean aDynamic)
Sets whether the UI repaints all columns as a column is being resized or dragged. Set to false for better performance.
getDynamicUpdate
public boolean getDynamicUpdate()
- Returns:
- Whether the UI is repainting the columns as a column is being sized or dragged.
hitTest
int hitTest(int aX)
paintComponent
void paintComponent(Graphics g, Component component, int x, int y, int w, int h)
columnAdded
public void columnAdded(ColumnModelEvent e)
- Implements:
- columnAdded in interface ColumnModelListener
columnRemoved
public void columnRemoved(ColumnModelEvent e)
- Implements:
- columnRemoved in interface ColumnModelListener
columnMoved
public void columnMoved(ColumnModelEvent e)
- Implements:
- columnMoved in interface ColumnModelListener
columnMarginChanged
public void columnMarginChanged(ChangeEvent e)
- Implements:
- columnMarginChanged in interface ColumnModelListener
columnWidthChanged
public void columnWidthChanged(ColumnModelEvent e)
- Implements:
- columnWidthChanged in interface ColumnModelListener
columnSelectionChanged
public void columnSelectionChanged(ChangeEvent e)
- Implements:
- columnSelectionChanged in interface ColumnModelListener
resizeAndRepaint
void resizeAndRepaint()
paint
public void paint(Graphics g)
- Overrides:
- paint in class JComponent
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class JComponent
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class JComponent
getMaximumSize
public Dimension getMaximumSize()
- Overrides:
- getMaximumSize in class JComponent
updateUI
public void updateUI()
- Overrides:
- updateUI in class JComponent
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4