|
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.BasicGroupTableHeaderUIDelegate
public class BasicGroupTableHeaderUIDelegate
The UIDelegate class for GroupTableHeader in all L&F's.
| 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 | |
|---|---|
BasicGroupTableHeaderUIDelegate(JTableHeader header,
CellRendererPane rendererPane)
|
|
| Method Summary | |
|---|---|
protected Point |
calculatePopupLocation()
calculate the popup location. |
void |
columnAdded(TableColumnModelEvent e)
|
void |
columnMarginChanged(ChangeEvent e)
|
void |
columnRemoved(TableColumnModelEvent e)
|
protected void |
drawConnectionLine(Graphics g,
Rectangle rect)
Draw the connect line for the parent column |
int |
getActualHeaderHeight()
Gets the height of the real header. |
int |
getActualModelPreferredWidth(int modelColumnIndex)
Gets the column's preferred width. |
int |
getGroupColumnPreferredHeight(int groupColumnIndex)
Gets the group column's preferred height. |
Dimension |
getPreferredSize(JComponent c)
Gets the preferred size of the header. |
void |
mouseMoved(MouseEvent e)
|
protected boolean |
mouseOverFilterButton(Point p)
Check if the mouse point is over the filter button. |
void |
paint(Graphics g,
JComponent c)
Paint method to paint the entire header. |
protected void |
paintGroupAreaBackground(Graphics g)
Paints the group area background. |
protected void |
paintGroupCell(Graphics g,
Rectangle cellRect,
int groupColumnIndex,
Object value,
boolean isSelected,
boolean hasFocus)
Paints the group column cell. |
protected void |
paintGroupCell(Graphics g,
Rectangle cellRect,
int groupColumnIndex,
Object value,
boolean isSelected,
boolean hasFocus,
boolean paintCellDecorators)
Paints the group column cell. |
void |
tableChanged(TableModelEvent e)
|
| Methods inherited from class com.jidesoft.plaf.basic.BasicEditableTableHeaderUIDelegate |
|---|
mouseReleased |
| Methods inherited from class com.jidesoft.plaf.basic.BasicSortableTableHeaderUIDelegate |
|---|
mouseEntered, mousePressed, propertyChange, sortChanged, sortChanging, uninstallAllListeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicGroupTableHeaderUIDelegate(JTableHeader header,
CellRendererPane rendererPane)
| Method Detail |
|---|
protected void paintGroupAreaBackground(Graphics g)
g - the Graphics instance
public void paint(Graphics g,
JComponent c)
BasicSortableTableHeaderUIDelegate
paint in class BasicAutoFilterTableHeaderUIDelegateg - the Graphics instancec - the component to be painted
protected void paintGroupCell(Graphics g,
Rectangle cellRect,
int groupColumnIndex,
Object value,
boolean isSelected,
boolean hasFocus)
g - the Graphics instancecellRect - the cell rectangle to paint the cellgroupColumnIndex - the group column indexvalue - the value to paintisSelected - the flag indicating if the cell is selectedhasFocus - the flag indicating if the cell has focus
protected void paintGroupCell(Graphics g,
Rectangle cellRect,
int groupColumnIndex,
Object value,
boolean isSelected,
boolean hasFocus,
boolean paintCellDecorators)
g - the Graphics instancecellRect - the cell rectangle to paint the cellgroupColumnIndex - the group column indexvalue - the value to paintisSelected - the flag indicating if the cell is selectedhasFocus - the flag indicating if the cell has focuspaintCellDecorators - if the cell decorators should be used as well
protected void drawConnectionLine(Graphics g,
Rectangle rect)
g - the Graphics instancerect - the rectangle of the parent columnpublic int getActualHeaderHeight()
public Dimension getPreferredSize(JComponent c)
BasicCellStyleTableHeaderUIDelegate
getPreferredSize in class BasicCellStyleTableHeaderUIDelegatec - the component
public int getGroupColumnPreferredHeight(int groupColumnIndex)
GroupTableHeaderUIDelegate
getGroupColumnPreferredHeight in interface GroupTableHeaderUIDelegategroupColumnIndex - the group column index
public int getActualModelPreferredWidth(int modelColumnIndex)
GroupTableHeaderUIDelegate
getActualModelPreferredWidth in interface GroupTableHeaderUIDelegatemodelColumnIndex - the column index in the actual model of DefaultGroupTableModel
public void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenertableChanged in class BasicCellStyleTableHeaderUIDelegatepublic void columnAdded(TableColumnModelEvent e)
columnAdded in interface TableColumnModelListenercolumnAdded in class BasicCellStyleTableHeaderUIDelegatepublic void columnRemoved(TableColumnModelEvent e)
columnRemoved in interface TableColumnModelListenercolumnRemoved in class BasicCellStyleTableHeaderUIDelegatepublic void columnMarginChanged(ChangeEvent e)
columnMarginChanged in interface TableColumnModelListenercolumnMarginChanged in class BasicCellStyleTableHeaderUIDelegatepublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenermouseMoved in class BasicAutoFilterTableHeaderUIDelegateprotected boolean mouseOverFilterButton(Point p)
BasicAutoFilterTableHeaderUIDelegate
mouseOverFilterButton in class BasicAutoFilterTableHeaderUIDelegatep - the mouse point
protected Point calculatePopupLocation()
BasicAutoFilterTableHeaderUIDelegate
calculatePopupLocation in class BasicAutoFilterTableHeaderUIDelegate
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||