|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.table.DefaultTableCellRenderer
nl.tudelft.simulation.introspection.sortable.SortingHeaderCell
public class SortingHeaderCell
The sorting header cell.
(c) copyright 2002-2005-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.table.DefaultTableCellRenderer |
|---|
DefaultTableCellRenderer.UIResource |
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static int |
instanceCounter
counts the number of created instances |
static int |
SORT_ASCENDING
SORT_NONE means that sorting is ascending |
static int |
SORT_DESCENDING
SORT_NONE means that sorting is descending |
static int |
SORT_NONE
SORT_NONE means that sorting is off |
| Fields inherited from class javax.swing.table.DefaultTableCellRenderer |
|---|
noFocusBorder |
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SortingHeaderCell()
constructs a new SortingHeaderCell without sorting. |
|
SortingHeaderCell(int sort)
constructs a new SortingHeaderCell |
|
| Method Summary | |
|---|---|
void |
changeSort()
changes the sort modus. |
int |
getSort()
|
boolean |
isAscendingSorted()
is the header cell ascendingly sorted? |
boolean |
isSorted()
is the header cell sorted? |
void |
paintComponent(Graphics g)
|
void |
setSort(int sort)
sets the sort mode |
protected void |
setValue(Object value)
|
String |
toString()
|
| Methods inherited from class javax.swing.table.DefaultTableCellRenderer |
|---|
firePropertyChange, firePropertyChange, getTableCellRendererComponent, invalidate, isOpaque, repaint, repaint, repaint, revalidate, setBackground, setForeground, updateUI, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SORT_NONE
public static final int SORT_ASCENDING
public static final int SORT_DESCENDING
protected static int instanceCounter
| Constructor Detail |
|---|
public SortingHeaderCell(int sort)
sort - the sort mode (none, ascending, descending).public SortingHeaderCell()
| Method Detail |
|---|
public void changeSort()
public void setSort(int sort)
sort - the new modepublic int getSort()
public boolean isSorted()
public boolean isAscendingSorted()
public void paintComponent(Graphics g)
paintComponent in class JComponentJComponent.paintComponent(java.awt.Graphics)protected void setValue(Object value)
setValue in class DefaultTableCellRendererDefaultTableCellRenderer.setValue(Object)public String toString()
toString in class ComponentObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||