|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 BasicAutoFilterTableHeaderUIDelegateg - the Graphics instancec - the component to be painted
protected void customizePaint(Graphics g,
TableColumn column,
Rectangle cellRect)
customizePaint in class BasicCellStyleTableHeaderUIDelegateprotected TableCellRenderer getHeaderRenderer(TableColumn aColumn)
BasicCellStyleTableHeaderUIDelegate
getHeaderRenderer in class BasicAutoFilterTableHeaderUIDelegateaColumn - the TableColumn instance
protected void paintCell(Graphics g,
Rectangle cellRect,
int columnIndex,
Object value,
boolean isSelected,
boolean hasFocus,
boolean paintCellDecorators)
BasicCellStyleTableHeaderUIDelegate
paintCell in class BasicAutoFilterTableHeaderUIDelegateg - 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 well
protected 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 BasicCellStyleTableHeaderUIDelegatep - the pointcolumn - the view column index
protected void startResizingColumn(Point p,
TableColumn resizingColumn)
startResizingColumn in class BasicCellStyleTableHeaderUIDelegatep - the mouse pointresizingColumn - the resizing column
protected void dragColumn(int columnIndex,
int targetX)
BasicCellStyleTableHeaderUIDelegate
dragColumn in class BasicCellStyleTableHeaderUIDelegatecolumnIndex - the dragging column indextargetX - the X position of target point
protected void resizeColumn(TableColumn resizingColumn,
int newWidth)
BasicCellStyleTableHeaderUIDelegate
resizeColumn in class BasicCellStyleTableHeaderUIDelegateresizingColumn - the column to resizenewWidth - the new widthpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class BasicEditableTableHeaderUIDelegatepublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenermouseMoved in class BasicAutoFilterTableHeaderUIDelegatepublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class BasicAutoFilterTableHeaderUIDelegatepublic Dimension getSize(TableColumnGroup group)
NestedTableHeaderUIDelegate
getSize in interface NestedTableHeaderUIDelegategroup - the table column group instance
public int getPreferredWidth(TableColumnGroup group)
NestedTableHeaderUIDelegate
getPreferredWidth in interface NestedTableHeaderUIDelegategroup - the table column group instance
public int getRowPreferredHeight(int row)
NestedTableHeaderUIDelegate
getRowPreferredHeight in interface NestedTableHeaderUIDelegaterow - the row index
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||