01: package vicazh.hyperpool;
02:
03: import java.util.logging.*;
04:
05: /**
06: * This class is the superclass of all graphic selectors
07: *
08: * @author Victor Zhigunov
09: * @version 0.4.0
10: */
11: abstract public class ISelector extends IElement implements
12: SelectorMBean {
13: /**
14: * @param interfaceClass
15: * interface class
16: * @param name
17: * service name
18: */
19: public ISelector(Class<?> interfaceClass, String name) {
20: super (interfaceClass, name);
21: }
22:
23: private GroupMBean group;
24:
25: public void setGroup(GroupMBean group) {
26: this .group = group;
27: }
28:
29: public GroupMBean getGroup() {
30: return group;
31: }
32:
33: public void setDef(int def) {
34: try {
35: setAttribute(SelectorMBean.DEF, def);
36: } catch (Exception e) {
37: Start.logger.log(Level.SEVERE, e.getMessage(), e);
38: }
39: }
40:
41: public int getDef() {
42: return ((SelectorMBean) melement).getDef();
43: }
44:
45: public void added(int index) {
46: }
47:
48: public void removed(int index) {
49: }
50: }
|