package si.ijs.acs.objectexplorer.engine.BACI; /** * The bean information class for si.ijs.acs.objectexplorer.engine.BACI.CorbalocDialog. */ public class CorbalocDialogBeanInfo extends java.beans.SimpleBeanInfo { /** * Gets the componentOrientation property descriptor. * @return java.beans.PropertyDescriptor */ public java.beans.PropertyDescriptor componentOrientationPropertyDescriptor() { java.beans.PropertyDescriptor aDescriptor = null; try { try { /* Using methods via getMethod is the faster way to create the componentOrientation property descriptor. */ java.lang.reflect.Method aGetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aGetMethodParameterTypes[] = {}; aGetMethod = getBeanClass().getMethod("getComponentOrientation", aGetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aGetMethod = findMethod(getBeanClass(), "getComponentOrientation", 0); }; java.lang.reflect.Method aSetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aSetMethodParameterTypes[] = { java.awt.ComponentOrientation.class }; aSetMethod = getBeanClass().getMethod("setComponentOrientation", aSetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aSetMethod = findMethod(getBeanClass(), "setComponentOrientation", 1); }; aDescriptor = new java.beans.PropertyDescriptor("componentOrientation" , aGetMethod, aSetMethod); } catch (Throwable exception) { /* Since we failed using methods, try creating a default property descriptor. */ handleException(exception); aDescriptor = new java.beans.PropertyDescriptor("componentOrientation" , getBeanClass()); }; /* aDescriptor.setBound(false); */ /* aDescriptor.setConstrained(false); */ /* aDescriptor.setDisplayName("componentOrientation"); */ /* aDescriptor.setShortDescription("componentOrientation"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ /* aDescriptor.setValue("ivjDesignTimeProperty", new Boolean(true)); */ aDescriptor.setValue("enumerationValues", new Object[] { "UNKNOWN",java.awt.ComponentOrientation.UNKNOWN,"java.awt.ComponentOrientation.UNKNOWN", "LEFT_TO_RIGHT",java.awt.ComponentOrientation.LEFT_TO_RIGHT,"java.awt.ComponentOrientation.LEFT_TO_RIGHT", "RIGHT_TO_LEFT",java.awt.ComponentOrientation.RIGHT_TO_LEFT,"java.awt.ComponentOrientation.RIGHT_TO_LEFT", }); } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } /** * Gets the debugSelected property descriptor. * @return java.beans.PropertyDescriptor */ public java.beans.PropertyDescriptor debugSelectedPropertyDescriptor() { java.beans.PropertyDescriptor aDescriptor = null; try { try { /* Using methods via getMethod is the faster way to create the debugSelected property descriptor. */ java.lang.reflect.Method aGetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aGetMethodParameterTypes[] = {}; aGetMethod = getBeanClass().getMethod("getDebugSelected", aGetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aGetMethod = findMethod(getBeanClass(), "getDebugSelected", 0); }; java.lang.reflect.Method aSetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aSetMethodParameterTypes[] = { boolean.class }; aSetMethod = getBeanClass().getMethod("setDebugSelected", aSetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aSetMethod = findMethod(getBeanClass(), "setDebugSelected", 1); }; aDescriptor = new java.beans.PropertyDescriptor("debugSelected" , aGetMethod, aSetMethod); } catch (Throwable exception) { /* Since we failed using methods, try creating a default property descriptor. */ handleException(exception); aDescriptor = new java.beans.PropertyDescriptor("debugSelected" , getBeanClass()); }; /* aDescriptor.setBound(false); */ /* aDescriptor.setConstrained(false); */ /* aDescriptor.setDisplayName("debugSelected"); */ /* aDescriptor.setShortDescription("debugSelected"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ /* aDescriptor.setValue("ivjDesignTimeProperty", new Boolean(true)); */ } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } /** * Find the method by comparing (name & parameter size) against the methods in the class. * @return java.lang.reflect.Method * @param aClass java.lang.Class * @param methodName java.lang.String * @param parameterCount int */ public static java.lang.reflect.Method findMethod(java.lang.Class aClass, java.lang.String methodName, int parameterCount) { try { /* Since this method attempts to find a method by getting all methods from the class, this method should only be called if getMethod cannot find the method. */ java.lang.reflect.Method methods[] = aClass.getMethods(); for (int index = 0; index < methods.length; index++){ java.lang.reflect.Method method = methods[index]; if ((method.getParameterTypes().length == parameterCount) && (method.getName().equals(methodName))) { return method; } } } catch (java.lang.Throwable exception) { return null; } return null; } /** * Returns the BeanInfo of the superclass of this bean to inherit its features. * @return java.beans.BeanInfo[] */ public java.beans.BeanInfo[] getAdditionalBeanInfo() { java.lang.Class superClass; java.beans.BeanInfo superBeanInfo = null; try { superClass = getBeanDescriptor().getBeanClass().getSuperclass(); } catch (java.lang.Throwable exception) { return null; } try { superBeanInfo = java.beans.Introspector.getBeanInfo(superClass); } catch (java.beans.IntrospectionException ie) {} if (superBeanInfo != null) { java.beans.BeanInfo[] ret = new java.beans.BeanInfo[1]; ret[0] = superBeanInfo; return ret; } return null; } /** * Gets the bean class. * @return java.lang.Class */ public static java.lang.Class getBeanClass() { return si.ijs.acs.objectexplorer.engine.BACI.CorbalocDialog.class; } /** * Gets the bean class name. * @return java.lang.String */ public static java.lang.String getBeanClassName() { return "si.ijs.acs.objectexplorer.engine.BACI.CorbalocDialog"; } public java.beans.BeanDescriptor getBeanDescriptor() { java.beans.BeanDescriptor aDescriptor = null; try { /* Create and return the CorbalocDialogBeanInfo bean descriptor. */ aDescriptor = new java.beans.BeanDescriptor(si.ijs.acs.objectexplorer.engine.BACI.CorbalocDialog.class); /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("hidden-state", Boolean.FALSE); */ } catch (Throwable exception) { }; return aDescriptor; } /** * Return the event set descriptors for this bean. * @return java.beans.EventSetDescriptor[] */ public java.beans.EventSetDescriptor[] getEventSetDescriptors() { try { java.beans.EventSetDescriptor aDescriptorList[] = {}; return aDescriptorList; } catch (Throwable exception) { handleException(exception); }; return null; } /** * Gets the getManagerFieldText() method descriptor. * @return java.beans.MethodDescriptor */ public java.beans.MethodDescriptor getManagerFieldTextMethodDescriptor() { java.beans.MethodDescriptor aDescriptor = null; try { /* Create and return the getManagerFieldText() method descriptor. */ java.lang.reflect.Method aMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aParameterTypes[] = {}; aMethod = getBeanClass().getMethod("getManagerFieldText", aParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aMethod = findMethod(getBeanClass(), "getManagerFieldText", 0); }; try { /* Try creating the method descriptor with parameter descriptors. */ java.beans.ParameterDescriptor aParameterDescriptors[] = {}; aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors); } catch (Throwable exception) { /* Try creating the method descriptor without parameter descriptors. */ handleException(exception); aDescriptor = new java.beans.MethodDescriptor(aMethod); }; /* aDescriptor.setDisplayName("getManagerFieldText()"); */ /* aDescriptor.setShortDescription("getManagerFieldText()"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } /** * Return the method descriptors for this bean. * @return java.beans.MethodDescriptor[] */ public java.beans.MethodDescriptor[] getMethodDescriptors() { try { java.beans.MethodDescriptor aDescriptorList[] = { getManagerFieldTextMethodDescriptor() ,main_javalangString__MethodDescriptor() ,oKButton_ActionPerformed_javaawteventActionEventMethodDescriptor() ,setManagerFieldText_javalangStringMethodDescriptor() }; return aDescriptorList; } catch (Throwable exception) { handleException(exception); }; return null; } /** * Return the property descriptors for this bean. * @return java.beans.PropertyDescriptor[] */ public java.beans.PropertyDescriptor[] getPropertyDescriptors() { try { java.beans.PropertyDescriptor aDescriptorList[] = { componentOrientationPropertyDescriptor() ,debugSelectedPropertyDescriptor() ,managerFieldTextPropertyDescriptor() ,repositoryFieldTextPropertyDescriptor() }; return aDescriptorList; } catch (Throwable exception) { handleException(exception); }; return null; } /** * Called whenever the bean information class throws an exception. * @param exception java.lang.Throwable */ private void handleException(java.lang.Throwable exception) { /* Uncomment the following lines to print uncaught exceptions to stdout */ // System.out.println("--------- UNCAUGHT EXCEPTION ---------"); // exception.printStackTrace(System.out); } /** * Gets the main(java.lang.String[]) method descriptor. * @return java.beans.MethodDescriptor */ public java.beans.MethodDescriptor main_javalangString__MethodDescriptor() { java.beans.MethodDescriptor aDescriptor = null; try { /* Create and return the main(java.lang.String[]) method descriptor. */ java.lang.reflect.Method aMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aParameterTypes[] = { java.lang.String[].class }; aMethod = getBeanClass().getMethod("main", aParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aMethod = findMethod(getBeanClass(), "main", 1); }; try { /* Try creating the method descriptor with parameter descriptors. */ java.beans.ParameterDescriptor aParameterDescriptor1 = new java.beans.ParameterDescriptor(); aParameterDescriptor1.setName("arg1"); aParameterDescriptor1.setDisplayName("args"); java.beans.ParameterDescriptor aParameterDescriptors[] = { aParameterDescriptor1 }; aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors); } catch (Throwable exception) { /* Try creating the method descriptor without parameter descriptors. */ handleException(exception); aDescriptor = new java.beans.MethodDescriptor(aMethod); }; /* aDescriptor.setDisplayName("main(java.lang.String[])"); */ /* aDescriptor.setShortDescription("main(java.lang.String[])"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } /** * Gets the managerFieldText property descriptor. * @return java.beans.PropertyDescriptor */ public java.beans.PropertyDescriptor managerFieldTextPropertyDescriptor() { java.beans.PropertyDescriptor aDescriptor = null; try { try { /* Using methods via getMethod is the faster way to create the managerFieldText property descriptor. */ java.lang.reflect.Method aGetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aGetMethodParameterTypes[] = {}; aGetMethod = getBeanClass().getMethod("getManagerFieldText", aGetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aGetMethod = findMethod(getBeanClass(), "getManagerFieldText", 0); }; java.lang.reflect.Method aSetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aSetMethodParameterTypes[] = { java.lang.String.class }; aSetMethod = getBeanClass().getMethod("setManagerFieldText", aSetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aSetMethod = findMethod(getBeanClass(), "setManagerFieldText", 1); }; aDescriptor = new java.beans.PropertyDescriptor("managerFieldText" , aGetMethod, aSetMethod); } catch (Throwable exception) { /* Since we failed using methods, try creating a default property descriptor. */ handleException(exception); aDescriptor = new java.beans.PropertyDescriptor("managerFieldText" , getBeanClass()); }; /* aDescriptor.setBound(false); */ /* aDescriptor.setConstrained(false); */ /* aDescriptor.setDisplayName("managerFieldText"); */ /* aDescriptor.setShortDescription("managerFieldText"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ /* aDescriptor.setValue("ivjDesignTimeProperty", new Boolean(true)); */ } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } /** * Gets the oKButton_ActionPerformed(java.awt.event.ActionEvent) method descriptor. * @return java.beans.MethodDescriptor */ public java.beans.MethodDescriptor oKButton_ActionPerformed_javaawteventActionEventMethodDescriptor() { java.beans.MethodDescriptor aDescriptor = null; try { /* Create and return the oKButton_ActionPerformed(java.awt.event.ActionEvent) method descriptor. */ java.lang.reflect.Method aMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aParameterTypes[] = { java.awt.event.ActionEvent.class }; aMethod = getBeanClass().getMethod("oKButton_ActionPerformed", aParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aMethod = findMethod(getBeanClass(), "oKButton_ActionPerformed", 1); }; try { /* Try creating the method descriptor with parameter descriptors. */ java.beans.ParameterDescriptor aParameterDescriptor1 = new java.beans.ParameterDescriptor(); aParameterDescriptor1.setName("arg1"); aParameterDescriptor1.setDisplayName("actionEvent"); java.beans.ParameterDescriptor aParameterDescriptors[] = { aParameterDescriptor1 }; aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors); } catch (Throwable exception) { /* Try creating the method descriptor without parameter descriptors. */ handleException(exception); aDescriptor = new java.beans.MethodDescriptor(aMethod); }; /* aDescriptor.setDisplayName("oKButton_ActionPerformed(java.awt.event.ActionEvent)"); */ /* aDescriptor.setShortDescription("oKButton_ActionPerformed(java.awt.event.ActionEvent)"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } /** * Gets the repositoryFieldText property descriptor. * @return java.beans.PropertyDescriptor */ public java.beans.PropertyDescriptor repositoryFieldTextPropertyDescriptor() { java.beans.PropertyDescriptor aDescriptor = null; try { try { /* Using methods via getMethod is the faster way to create the repositoryFieldText property descriptor. */ java.lang.reflect.Method aGetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aGetMethodParameterTypes[] = {}; aGetMethod = getBeanClass().getMethod("getRepositoryFieldText", aGetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aGetMethod = findMethod(getBeanClass(), "getRepositoryFieldText", 0); }; java.lang.reflect.Method aSetMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aSetMethodParameterTypes[] = { java.lang.String.class }; aSetMethod = getBeanClass().getMethod("setRepositoryFieldText", aSetMethodParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aSetMethod = findMethod(getBeanClass(), "setRepositoryFieldText", 1); }; aDescriptor = new java.beans.PropertyDescriptor("repositoryFieldText" , aGetMethod, aSetMethod); } catch (Throwable exception) { /* Since we failed using methods, try creating a default property descriptor. */ handleException(exception); aDescriptor = new java.beans.PropertyDescriptor("repositoryFieldText" , getBeanClass()); }; /* aDescriptor.setBound(false); */ /* aDescriptor.setConstrained(false); */ /* aDescriptor.setDisplayName("repositoryFieldText"); */ /* aDescriptor.setShortDescription("repositoryFieldText"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ /* aDescriptor.setValue("ivjDesignTimeProperty", new Boolean(true)); */ } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } /** * Gets the setManagerFieldText(java.lang.String) method descriptor. * @return java.beans.MethodDescriptor */ public java.beans.MethodDescriptor setManagerFieldText_javalangStringMethodDescriptor() { java.beans.MethodDescriptor aDescriptor = null; try { /* Create and return the setManagerFieldText(java.lang.String) method descriptor. */ java.lang.reflect.Method aMethod = null; try { /* Attempt to find the method using getMethod with parameter types. */ java.lang.Class aParameterTypes[] = { java.lang.String.class }; aMethod = getBeanClass().getMethod("setManagerFieldText", aParameterTypes); } catch (Throwable exception) { /* Since getMethod failed, call findMethod. */ handleException(exception); aMethod = findMethod(getBeanClass(), "setManagerFieldText", 1); }; try { /* Try creating the method descriptor with parameter descriptors. */ java.beans.ParameterDescriptor aParameterDescriptor1 = new java.beans.ParameterDescriptor(); aParameterDescriptor1.setName("arg1"); aParameterDescriptor1.setDisplayName("arg1"); java.beans.ParameterDescriptor aParameterDescriptors[] = { aParameterDescriptor1 }; aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors); } catch (Throwable exception) { /* Try creating the method descriptor without parameter descriptors. */ handleException(exception); aDescriptor = new java.beans.MethodDescriptor(aMethod); }; /* aDescriptor.setDisplayName("setManagerFieldText(java.lang.String)"); */ /* aDescriptor.setShortDescription("setManagerFieldText(java.lang.String)"); */ /* aDescriptor.setExpert(false); */ /* aDescriptor.setHidden(false); */ /* aDescriptor.setValue("preferred", new Boolean(false)); */ } catch (Throwable exception) { handleException(exception); }; return aDescriptor; } }