|
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.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 instancepublic void paint(Graphics g, JComponent c)
BasicSortableTableHeaderUIDelegate
paint
in class BasicAutoFilterTableHeaderUIDelegate
g
- the Graphics instancec
- the component to be paintedprotected 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 focusprotected 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 wellprotected 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 BasicCellStyleTableHeaderUIDelegate
c
- the component
public int getGroupColumnPreferredHeight(int groupColumnIndex)
GroupTableHeaderUIDelegate
getGroupColumnPreferredHeight
in interface GroupTableHeaderUIDelegate
groupColumnIndex
- the group column index
public int getActualModelPreferredWidth(int modelColumnIndex)
GroupTableHeaderUIDelegate
getActualModelPreferredWidth
in interface GroupTableHeaderUIDelegate
modelColumnIndex
- the column index in the actual model of DefaultGroupTableModel
public void tableChanged(TableModelEvent e)
tableChanged
in interface TableModelListener
tableChanged
in class BasicCellStyleTableHeaderUIDelegate
public void columnAdded(TableColumnModelEvent e)
columnAdded
in interface TableColumnModelListener
columnAdded
in class BasicCellStyleTableHeaderUIDelegate
public void columnRemoved(TableColumnModelEvent e)
columnRemoved
in interface TableColumnModelListener
columnRemoved
in class BasicCellStyleTableHeaderUIDelegate
public void columnMarginChanged(ChangeEvent e)
columnMarginChanged
in interface TableColumnModelListener
columnMarginChanged
in class BasicCellStyleTableHeaderUIDelegate
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class BasicAutoFilterTableHeaderUIDelegate
protected boolean mouseOverFilterButton(Point p)
BasicAutoFilterTableHeaderUIDelegate
mouseOverFilterButton
in class BasicAutoFilterTableHeaderUIDelegate
p
- 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 |