|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.table.SortTableRenderer
com.sciapp.table.SortTableButtonRenderer
public class SortTableButtonRenderer
A SortTableRenderer implementation that uses JButtons in order to render the table header. This class shows the column sorting order as a number next to the column name.
Constructor Summary | |
---|---|
SortTableButtonRenderer()
Constructs a SortTableButtonRenderer. |
Method Summary | |
---|---|
Component |
getAscSortComponent()
Returns the component used when ascending sorting is being used. |
Component |
getDescSortComponent()
Returns the component used when descending sorting is being used. |
Component |
getNoSortComponent()
Returns the component used when no sorting is being used. |
boolean |
getShowButtonPress()
Returns true if the button should be pressed when clicked. |
void |
prepareRenderer(int sortIndex,
Object value,
int column,
Component comp)
Prepares the component used for drawing the header. |
void |
setShowButtonPress(boolean showButtonPress)
Sets a flag that is true if the button should be pressed when clicked. |
Methods inherited from class com.sciapp.table.SortTableRenderer |
---|
getTableCellRendererComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortTableButtonRenderer()
Method Detail |
---|
public Component getAscSortComponent()
getAscSortComponent
in class SortTableRenderer
public Component getDescSortComponent()
getDescSortComponent
in class SortTableRenderer
public Component getNoSortComponent()
getNoSortComponent
in class SortTableRenderer
public boolean getShowButtonPress()
public void prepareRenderer(int sortIndex, Object value, int column, Component comp)
prepareRenderer
in class SortTableRenderer
sortIndex
- the sorting order of the column being drawnvalue
- the value of the header columncolumn
- the column being drawncomp
- the component being drawnpublic void setShowButtonPress(boolean showButtonPress)
showButtonPress
- the showButtonPress flag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |