01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets.table;
06:
07: import com.javelin.swinglets.*;
08:
09: /**
10: * This interface defines the methods any object that would like to be
11: * a renderer for cell in a STable.
12: *
13: * @author Robin Sharp
14: */
15:
16: public interface STableCellRenderer {
17: /**
18: * This method is sent to the renderer by the drawing table to
19: * configure the renderer appropriately before drawing. Return
20: * the SComponent used for drawing.
21: * <p>
22: * Where a tableHeader must be a SLabel or a SIcon for the link to work
23: * back to the table.
24: */
25: SComponent getTableCellRendererComponent(STable table,
26: Object value, int row, int column);
27:
28: }
|