01: package org.osbl.client.wings.control;
02:
03: import org.osbl.client.wings.shell.Tool;
04: import org.concern.Controller;
05: import org.concern.Subject;
06: import org.wings.SDimension;
07: import org.wings.SListSelectionModel;
08: import org.wingx.XScrollPane;
09: import org.wingx.XTable;
10:
11: import java.util.*;
12:
13: /**
14: * @author hengels
15: * @version $Revision$
16: */
17: class StateTable extends XScrollPane implements Plugin {
18: XTable table;
19: StateTableModel stateModel;
20:
21: public StateTable() {
22: stateModel = new StateTableModel();
23: table = new XTable(stateModel);
24: table.setEditable(false);
25: table.setPreferredSize(SDimension.FULLWIDTH);
26: table.setSelectionMode(SListSelectionModel.NO_SELECTION);
27: setViewportView(table);
28: }
29:
30: public void update() {
31: stateModel.refresh();
32: }
33:
34: public void setController(Controller controller) {
35: stateModel.setController(controller);
36: }
37:
38: public void setSubject(Subject subject) {
39: stateModel.setSubject(subject);
40: }
41:
42: public List<Tool> getTools() {
43: return Collections.EMPTY_LIST;
44: }
45: }
|