Class grendel.widgets.ColumnHeader
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
ColumnModel fColumnModel
CellRendererPane fCellRendererPane
static final int RESIZE_MARGIN
static final int DRAG_THRESHOLD
boolean fDynamicUpdate
boolean fOverResize
int fHitOffset
Column fPressedColumn
HeaderMouseListener fMouseListener
Constructors
public ColumnHeader(ColumnModel aColumnModel)
Takes a ColumnModel. The ColumnModel is generally shared with whatever
is the column header for.
Methods
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.
public boolean getDynamicUpdate()
- Returns:
- Whether the UI is repainting the columns as a column
is being sized or dragged.
int hitTest(int aX)
void paintComponent(Graphics g,
Component component,
int x,
int y,
int w,
int h)
public void columnAdded(ColumnModelEvent e)
- Implements:
- columnAdded in interface ColumnModelListener
public void columnRemoved(ColumnModelEvent e)
- Implements:
- columnRemoved in interface ColumnModelListener
public void columnMoved(ColumnModelEvent e)
- Implements:
- columnMoved in interface ColumnModelListener
public void columnMarginChanged(ChangeEvent e)
- Implements:
- columnMarginChanged in interface ColumnModelListener
public void columnWidthChanged(ColumnModelEvent e)
- Implements:
- columnWidthChanged in interface ColumnModelListener
public void columnSelectionChanged(ChangeEvent e)
- Implements:
- columnSelectionChanged in interface ColumnModelListener
void resizeAndRepaint()
public void paint(Graphics g)
- Overrides:
- paint in class JComponent
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class JComponent
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class JComponent
public Dimension getMaximumSize()
- Overrides:
- getMaximumSize in class JComponent
public void updateUI()
- Overrides:
- updateUI in class JComponent
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|