public EventSetDescriptor[] getEventSetDescriptors() { try { Method[] events = StrangeEventListener.class.getMethods(); Method addListener = StrangeBean.class.getMethod("addStrangeEventListener", new Class[] {StrangeEventListener.class}); Method removeListener = StrangeBean.class.getMethod("removeStrangeEventListener", new Class[] {StrangeEventListener.class}); Method getListeners = StrangeBean.class.getMethod("getStrangeEventListeners", new Class[0]); return new EventSetDescriptor[] { new EventSetDescriptor( "strangeEvent", StrangeEventListener.class, events, addListener, removeListener, getListeners) }; } catch (Exception e) { e.printStackTrace(System.out); return super.getEventSetDescriptors(); } } }
@Override public EventSetDescriptor[] getEventSetDescriptors() { try { EventSetDescriptor[] esds = { new EventSetDescriptor(ClassifierPerformanceEvaluator.class, "text", TextListener.class, "acceptText"), new EventSetDescriptor(ClassifierPerformanceEvaluator.class, "thresholdData", ThresholdDataListener.class, "acceptDataSet"), new EventSetDescriptor(ClassifierPerformanceEvaluator.class, "visualizableError", VisualizableErrorListener.class, "acceptDataSet") }; return esds; } catch (Exception ex) { ex.printStackTrace(); } return null; }
public EventSetDescriptor[] getEventSetDescriptors() { EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( JMSBean.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); } catch( IntrospectionException e) { Exceptions.printStackTrace(e); } // Here you can add code for customizing the event sets array. return eventSets; }
public EventSetDescriptor [] getEventSetDescriptors() { try { EventSetDescriptor [] esds = { new EventSetDescriptor(ClustererPerformanceEvaluator.class, "text", TextListener.class, "acceptText")}; return esds; } catch (Exception ex) { ex.printStackTrace(); } return null; } }
public EventSetDescriptor [] getEventSetDescriptors() { try { EventSetDescriptor [] esds = { new EventSetDescriptor(TestSetProducer.class, "testSet", TestSetListener.class, "acceptTestSet") }; return esds; } catch (Exception ex) { ex.printStackTrace(); } return null; } }
@Override public EventSetDescriptor[] getEventSetDescriptors() { try { EventSetDescriptor[] eventSetDescriptors = new EventSetDescriptor[] { new EventSetDescriptor(CachedRowSetDataModel.class, "dataModel", //NOI18N DataModelListener.class, new String[] { "rowSelected" }, //NOI18N "addDataModelListener", "removeDataModelListener") //NOI18N }; return eventSetDescriptors; } catch (IntrospectionException e) { Exceptions.printStackTrace(e); return null; } }
public EventSetDescriptor [] getEventSetDescriptors() { try { EventSetDescriptor [] esds = { new EventSetDescriptor(ClustererPerformanceEvaluator.class, "text", TextListener.class, "acceptText")}; return esds; } catch (Exception ex) { ex.printStackTrace(); } return null; } }
public EventSetDescriptor[] getEventSetDescriptors() { try { EventSetDescriptor[] eventSetDescriptors; eventSetDescriptors = new EventSetDescriptor[] { new EventSetDescriptor(DefaultTableDataModel.class, "dataModel", //NOI18N DataModelListener.class, new String[] { "rowSelected" }, //NOI18N "addDataModelListener", "removeDataModelListener") //NOI18N }; return eventSetDescriptors; } catch (IntrospectionException e) { Exceptions.printStackTrace(e); return null; } }
public EventSetDescriptor [] getEventSetDescriptors() { try { EventSetDescriptor [] esds = { new EventSetDescriptor(TestSetProducer.class, "testSet", TestSetListener.class, "acceptTestSet") }; return esds; } catch (Exception ex) { ex.printStackTrace(); } return null; } }
@Override public EventSetDescriptor[] getEventSetDescriptors() { try { // get the class object which we'll describe final Class<AbstractFeedFetcher> clz = AbstractFeedFetcher.class; final Method addMethod = clz.getMethod("addFetcherEventListener", new Class[] { FetcherListener.class }); final Method removeMethod = clz.getMethod("removeFetcherEventListener", new Class[] { FetcherListener.class }); final Method listenerMethod = FetcherListener.class.getMethod("fetcherEvent", new Class[] { FetcherEvent.class }); final EventSetDescriptor est = new EventSetDescriptor("fetcherEvent", clz, new Method[] { listenerMethod }, addMethod, removeMethod); return new EventSetDescriptor[] { est }; } catch (final Exception e) { // IntrospectionException, SecurityException and/or NoSuchMethodException can be thrown // here. The best we can do is to convert them to runtime exceptions throw new RuntimeException(e); } }
public EventSetDescriptor[] getEventSetDescriptors() { try { Class clz = AbstractFeedFetcher.class; // get the class object which we'll describe Method addMethod = clz.getMethod("addFetcherEventListener", new Class[] { FetcherListener.class }); Method removeMethod = clz.getMethod("removeFetcherEventListener", new Class[] { FetcherListener.class }); Method listenerMethod = FetcherListener.class.getMethod("fetcherEvent", new Class[] { FetcherEvent.class }); EventSetDescriptor est = new EventSetDescriptor("fetcherEvent", clz, new Method[] { listenerMethod }, addMethod, removeMethod); EventSetDescriptor[] results = new EventSetDescriptor[] { est }; return results; } catch (Exception e) { // IntrospectionException, SecurityException and/or NoSuchMethodException can be thrown here // the best we can do is to convert them to runtime exceptions throw new RuntimeException(e); } } }
public EventSetDescriptor[] getEventSetDescriptors() { try { Class clz = AbstractFeedFetcher.class; // get the class object which we'll describe Method addMethod = clz.getMethod("addFetcherEventListener", new Class[] { FetcherListener.class }); Method removeMethod = clz.getMethod("removeFetcherEventListener", new Class[] { FetcherListener.class }); Method listenerMethod = FetcherListener.class.getMethod("fetcherEvent", new Class[] { FetcherEvent.class }); EventSetDescriptor est = new EventSetDescriptor("fetcherEvent", clz, new Method[] { listenerMethod }, addMethod, removeMethod); EventSetDescriptor[] results = new EventSetDescriptor[] { est }; return results; } catch (Exception e) { // IntrospectionException, SecurityException and/or NoSuchMethodException can be thrown here // the best we can do is to convert them to runtime exceptions throw new RuntimeException(e); } } }
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( nl.cloudfarming.client.model.ProductionUnit.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Events // Here you can add code for customizing the event sets array. return eventSets; }//GEN-LAST:Events // Method identifiers//GEN-FIRST:Methods
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( nl.cloudfarming.client.geoviewer.EditLayer.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Events // Here you can add code for customizing the event sets array. return eventSets; }//GEN-LAST:Events
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( Shape.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); } // Here you can add code for customizing the event sets array. return eventSets; }
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( nl.cloudfarming.client.model.Task.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Events // Here you can add code for customizing the event sets array. return eventSets; }//GEN-LAST:Events
/** * {@inheritDoc} **/ @Override public EventSetDescriptor[] getEventSetDescriptors() { try { EventSetDescriptor changed = new EventSetDescriptor(PasswdMembershipService.class, "propertyChange" , PropertyChangeListener.class, "propertyChange"); changed.setDisplayName("bound property change"); EventSetDescriptor[] rv = { changed }; return rv; } catch (IntrospectionException failed) { throw new UndeclaredThrowableException(failed, "Configuration error"); } }
/** * {@inheritDoc} **/ @Override public EventSetDescriptor[] getEventSetDescriptors() { try { EventSetDescriptor changed = new EventSetDescriptor(PSEMembershipService.class, "propertyChange" , java.beans.PropertyChangeListener.class, "propertyChange"); changed.setDisplayName("bound property change"); EventSetDescriptor[] rv = { changed }; return rv; } catch (IntrospectionException failed) { throw new UndeclaredThrowableException(failed, "Configuration error"); } }
/** * {@inheritDoc} **/ @Override public EventSetDescriptor[] getEventSetDescriptors() { try { EventSetDescriptor changed = new EventSetDescriptor(PSECredential.class, "propertyChange" , PropertyChangeListener.class, "propertyChange"); changed.setDisplayName("bound property change"); EventSetDescriptor[] rv = { changed }; return rv; } catch (IntrospectionException failed) { throw new UndeclaredThrowableException(failed, "Configuration error"); } }
/** * {@inheritDoc} **/ @Override public EventSetDescriptor[] getEventSetDescriptors() { try { EventSetDescriptor changed = new EventSetDescriptor(NoneMembershipService.class, "propertyChange" , PropertyChangeListener.class, "propertyChange"); changed.setDisplayName("bound property change"); EventSetDescriptor[] rv = { changed }; return rv; } catch (IntrospectionException failed) { throw new UndeclaredThrowableException(failed, "Configuration error"); } }