csheets.ext.test.ui
Class TestableCellDecorator
java.lang.Object
csheets.ui.ext.CellDecorator
csheets.ext.test.ui.TestableCellDecorator
public class TestableCellDecorator
- extends CellDecorator
A decorator for testable cells.
- Author:
- Einar Pehrson
|
Method Summary |
void |
decorate(JComponent component,
Graphics g,
Cell cell,
boolean selected,
boolean hasFocus)
Decorates the given graphics context if the cell being rendered
has a test error. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestableCellDecorator
public TestableCellDecorator()
- Creates a new cell decorator.
decorate
public void decorate(JComponent component,
Graphics g,
Cell cell,
boolean selected,
boolean hasFocus)
- Decorates the given graphics context if the cell being rendered
has a test error.
- Specified by:
decorate in class CellDecorator
- Parameters:
component - the cell renderer componentg - the graphics context on which drawing should be donecell - the cell being renderedselected - whether the cell is selectedhasFocus - whether the cell has focus