KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > fractal > swing > JSplitPaneImpl


1 // skeleton class automatically generated
2

3 package org.objectweb.fractal.swing;
4
5 import org.objectweb.fractal.api.control.BindingController;
6
7 public class JSplitPaneImpl
8   extends javax.swing.JSplitPane JavaDoc
9   implements JSplitPaneItf, JSplitPaneAttributes, BindingController
10 {
11
12   // fields manually added
13
public final static String JavaDoc LEFT_COMPONENT_BINDING = "left-component";
14   public final static String JavaDoc RIGHT_COMPONENT_BINDING = "right-component";
15
16   public JSplitPaneImpl () {
17     super();
18   }
19   public JSplitPaneImpl (int arg0) {
20     super(arg0);
21   }
22   public JSplitPaneImpl (int arg0, boolean arg1) {
23     super(arg0,arg1);
24   }
25   public JSplitPaneImpl (int arg0, java.awt.Component JavaDoc arg1, java.awt.Component JavaDoc arg2) {
26     super(arg0,arg1,arg2);
27   }
28   public JSplitPaneImpl (int arg0, boolean arg1, java.awt.Component JavaDoc arg2, java.awt.Component JavaDoc arg3) {
29     super(arg0,arg1,arg2,arg3);
30   }
31
32   public String JavaDoc[] listFc () {
33     // put your own code here
34
return new String JavaDoc[] {
35       LEFT_COMPONENT_BINDING,
36       RIGHT_COMPONENT_BINDING
37     };
38   }
39
40   public Object JavaDoc lookupFc (String JavaDoc clientItfName) {
41     // put your own code here
42
if (clientItfName.equals(LEFT_COMPONENT_BINDING)) {
43       return super.getLeftComponent();
44     } else if (clientItfName.equals(RIGHT_COMPONENT_BINDING)) {
45       return super.getRightComponent();
46     }
47     return null;
48   }
49
50   public void bindFc (String JavaDoc clientItfName, Object JavaDoc serverItf) {
51     // put your own code here
52
if (clientItfName.equals(LEFT_COMPONENT_BINDING)) {
53       super.setLeftComponent((java.awt.Component JavaDoc)serverItf);
54     } else if (clientItfName.equals(RIGHT_COMPONENT_BINDING)) {
55       super.setRightComponent((java.awt.Component JavaDoc)serverItf);
56     }
57   }
58
59   public void unbindFc (String JavaDoc clientItfName) {
60     // put your own code here
61
if (clientItfName.equals(LEFT_COMPONENT_BINDING)) {
62       super.setLeftComponent(null);
63     } else if (clientItfName.equals(RIGHT_COMPONENT_BINDING)) {
64       super.setRightComponent(null);
65     }
66   }
67
68   // manually added
69
public boolean getOneTouchExpandable () {
70     return isOneTouchExpandable();
71   }
72
73 }
74
Popular Tags