01: package vicazh.hyperpool.stream;
02:
03: import java.util.*;
04: import java.util.logging.*;
05: import vicazh.hyperpool.*;
06: import vicazh.hyperpool.Start;
07:
08: /**
09: * The graphic list selector
10: *
11: * @author Victor Zhigunov
12: * @version 0.4.0
13: */
14: abstract public class IListSelector extends ISelector implements
15: ListSelectorMBean {
16: /**
17: * @param interfaceClass
18: * interface class
19: * @param name
20: * selector name
21: */
22: public IListSelector(Class<?> interfaceClass, String name) {
23: super (interfaceClass, name);
24: }
25:
26: public List<List<Object>> getList() {
27: return ((ListSelectorMBean) melement).getList();
28: }
29:
30: public void setList(List<List<Object>> list) {
31: try {
32: setListAttribute(list);
33: } catch (Exception e) {
34: Start.logger.log(Level.SEVERE, e.getMessage(), e);
35: }
36: }
37:
38: public int getIndex(Object object) {
39: return ((ListSelectorMBean) melement).getIndex(object);
40: }
41:
42: public void setListAttribute(List<List<Object>> value)
43: throws Exception {
44: ((ListSelectorMBean) melement).setListAttribute(value);
45: }
46: }
|