|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.plaf.TableHeaderUIDelegate com.jidesoft.plaf.basic.BasicCellStyleTableHeaderUIDelegate com.jidesoft.plaf.basic.BasicSortableTableHeaderUIDelegate com.jidesoft.plaf.basic.BasicEditableTableHeaderUIDelegate com.jidesoft.plaf.basic.BasicAutoFilterTableHeaderUIDelegate com.jidesoft.plaf.basic.BasicNestedTableHeaderUIDelegate
public class BasicNestedTableHeaderUIDelegate
UI class for NestedTableHeader.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.plaf.basic.BasicAutoFilterTableHeaderUIDelegate |
---|
BasicAutoFilterTableHeaderUIDelegate.DropDownSwingWorker |
Field Summary |
---|
Fields inherited from class com.jidesoft.plaf.basic.BasicAutoFilterTableHeaderUIDelegate |
---|
HIDE_POPUP_KEY |
Fields inherited from class com.jidesoft.plaf.basic.BasicCellStyleTableHeaderUIDelegate |
---|
_header, _mouseXOffset, _rendererPane |
Constructor Summary | |
---|---|
BasicNestedTableHeaderUIDelegate(JTableHeader header,
CellRendererPane rendererPane)
|
Method Summary | |
---|---|
protected void |
customizePaint(Graphics g,
TableColumn column,
Rectangle cellRect)
|
protected void |
dragColumn(int columnIndex,
int targetX)
Drags the column to a new position. |
protected int |
getHeaderPreferredHeight()
Gets the preferred height of the header. |
protected TableCellRenderer |
getHeaderRenderer(TableColumn aColumn)
Gets header renderer from the TableColumn instance and the column index. |
int |
getPreferredWidth(TableColumnGroup group)
Gets the TableColumnGroup's preferred size. |
TableColumn |
getResizingColumn(Point p,
int column)
Gets current resizing column from the mouse point and the column index. |
int |
getRowPreferredHeight(int row)
Gets the row's preferred height. |
Dimension |
getSize(TableColumnGroup group)
Gets the TableColumnGroup's size. |
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paint(Graphics g,
JComponent c)
Paint method to paint the entire header. |
protected void |
paintCell(Graphics g,
Rectangle cellRect,
int columnIndex,
Object value,
boolean isSelected,
boolean hasFocus,
boolean paintCellDecorators)
Paints the header cell. |
protected void |
paintCell(Graphics g,
Rectangle cellRect,
TableColumnGroup cTableGroup)
Paints TableColumnGroup. |
protected void |
resizeColumn(TableColumn resizingColumn,
int newWidth)
Resizes the target column with new width. |
protected void |
startResizingColumn(Point p,
TableColumn resizingColumn)
Prepares to resize the entire TableColumnGroup if the mouse is not over the original table header to resize. |
Methods inherited from class com.jidesoft.plaf.basic.BasicSortableTableHeaderUIDelegate |
---|
mouseEntered, mousePressed, propertyChange, sortChanged, sortChanging, uninstallAllListeners |
Methods inherited from class com.jidesoft.plaf.basic.BasicCellStyleTableHeaderUIDelegate |
---|
columnAdded, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, createMarginBorder, customizeRendererComponent, getBorderInsets, getPreferredHeight, getPreferredSize, getPreferredWidth, hasStyledLabelColumn, invalidateCache, isMouseOverPaintArea, releaseRendererComponent, tableChanged, viewIndexForColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicNestedTableHeaderUIDelegate(JTableHeader header, CellRendererPane rendererPane)
Method Detail |
---|
public void paint(Graphics g, JComponent c)
BasicSortableTableHeaderUIDelegate
paint
in class BasicAutoFilterTableHeaderUIDelegate
g
- the Graphics instancec
- the component to be paintedprotected void customizePaint(Graphics g, TableColumn column, Rectangle cellRect)
customizePaint
in class BasicCellStyleTableHeaderUIDelegate
protected TableCellRenderer getHeaderRenderer(TableColumn aColumn)
BasicCellStyleTableHeaderUIDelegate
getHeaderRenderer
in class BasicAutoFilterTableHeaderUIDelegate
aColumn
- the TableColumn instance
protected void paintCell(Graphics g, Rectangle cellRect, int columnIndex, Object value, boolean isSelected, boolean hasFocus, boolean paintCellDecorators)
BasicCellStyleTableHeaderUIDelegate
paintCell
in class BasicAutoFilterTableHeaderUIDelegate
g
- the Graphics instancecellRect
- the cell rectangle to be painted incolumnIndex
- the view column index to paintvalue
- the header value to paintisSelected
- if the column is selectedhasFocus
- if the column has focuspaintCellDecorators
- if the cell decorators should be used as wellprotected void paintCell(Graphics g, Rectangle cellRect, TableColumnGroup cTableGroup)
g
- the Graphics instancecellRect
- the cell rectangle to paintcTableGroup
- the TableColumnGroup to paintprotected int getHeaderPreferredHeight()
BasicCellStyleTableHeaderUIDelegate
getHeaderPreferredHeight
in class BasicCellStyleTableHeaderUIDelegate
public TableColumn getResizingColumn(Point p, int column)
getResizingColumn
in class BasicCellStyleTableHeaderUIDelegate
p
- the pointcolumn
- the view column index
protected void startResizingColumn(Point p, TableColumn resizingColumn)
startResizingColumn
in class BasicCellStyleTableHeaderUIDelegate
p
- the mouse pointresizingColumn
- the resizing columnprotected void dragColumn(int columnIndex, int targetX)
BasicCellStyleTableHeaderUIDelegate
dragColumn
in class BasicCellStyleTableHeaderUIDelegate
columnIndex
- the dragging column indextargetX
- the X position of target pointprotected void resizeColumn(TableColumn resizingColumn, int newWidth)
BasicCellStyleTableHeaderUIDelegate
resizeColumn
in class BasicCellStyleTableHeaderUIDelegate
resizingColumn
- the column to resizenewWidth
- the new widthpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class BasicEditableTableHeaderUIDelegate
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class BasicAutoFilterTableHeaderUIDelegate
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class BasicAutoFilterTableHeaderUIDelegate
public Dimension getSize(TableColumnGroup group)
NestedTableHeaderUIDelegate
getSize
in interface NestedTableHeaderUIDelegate
group
- the table column group instance
public int getPreferredWidth(TableColumnGroup group)
NestedTableHeaderUIDelegate
getPreferredWidth
in interface NestedTableHeaderUIDelegate
group
- the table column group instance
public int getRowPreferredHeight(int row)
NestedTableHeaderUIDelegate
getRowPreferredHeight
in interface NestedTableHeaderUIDelegate
row
- the row index
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |