01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets.tree;
06:
07: import com.javelin.swinglets.*;
08:
09: /**
10: * Defines the requirements for an object that displays a tree node.
11: *
12: * @author Robin Sharp
13: */
14:
15: public interface STreeCellRenderer {
16:
17: /**
18: * Sets the value of the current tree cell to <code>value</code>.
19: * Currently component.setName( ""+row ) MUST be called.
20: */
21: SComponent getTreeCellRendererComponent(STree tree, Object value,
22: boolean expanded, boolean leaf, int row, boolean isSelected);
23:
24: }
|