1 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 9 implements JSplitPaneItf, JSplitPaneAttributes, BindingController 10 { 11 12 public final static String LEFT_COMPONENT_BINDING = "left-component"; 14 public final static String 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 arg1, java.awt.Component arg2) { 26 super(arg0,arg1,arg2); 27 } 28 public JSplitPaneImpl (int arg0, boolean arg1, java.awt.Component arg2, java.awt.Component arg3) { 29 super(arg0,arg1,arg2,arg3); 30 } 31 32 public String [] listFc () { 33 return new String [] { 35 LEFT_COMPONENT_BINDING, 36 RIGHT_COMPONENT_BINDING 37 }; 38 } 39 40 public Object lookupFc (String clientItfName) { 41 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 clientItfName, Object serverItf) { 51 if (clientItfName.equals(LEFT_COMPONENT_BINDING)) { 53 super.setLeftComponent((java.awt.Component )serverItf); 54 } else if (clientItfName.equals(RIGHT_COMPONENT_BINDING)) { 55 super.setRightComponent((java.awt.Component )serverItf); 56 } 57 } 58 59 public void unbindFc (String clientItfName) { 60 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 public boolean getOneTouchExpandable () { 70 return isOneTouchExpandable(); 71 } 72 73 } 74 | Popular Tags |