/** * {@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"); } }
new Method[] {Action.class.getMethod("action", new Class[] {})}, //NOI18N null, null); actionEventDescriptor.setDisplayName( DesignMessageUtil.getMessage(DesignUtil.class, "DesignUtil.event.action")); actionEventDescriptor.setValue(Constants.EventSetDescriptor.BINDING_PROPERTY,
public EventSetDescriptor[] getEventSetDescriptors() { if (eventSetDescriptors == null) { try { PropertyDescriptor actionDescriptor = null; PropertyDescriptor[] propertyDescriptors = this.getPropertyDescriptors(); for (int i = 0; i < propertyDescriptors.length && actionDescriptor == null; i++) { if (propertyDescriptors[i].getName().equals("linkAction")) //NOI18N actionDescriptor = propertyDescriptors[i]; } EventSetDescriptor actionEventDescriptor = new EventSetDescriptor("linkAction", Action.class, //NOI18N new Method[] {Action.class.getMethod("action", new Class[] {})}, //NOI18N null, null); actionEventDescriptor.setDisplayName(actionDescriptor.getDisplayName()); actionEventDescriptor.setValue(Constants.EventSetDescriptor.BINDING_PROPERTY, actionDescriptor); actionEventDescriptor.setShortDescription(actionDescriptor.getShortDescription()); eventSetDescriptors = new EventSetDescriptor[] {actionEventDescriptor}; } catch (Exception e) { e.printStackTrace(); } } return eventSetDescriptors; }
new Class[] {ValueChangeEvent.class})}, null, null); valueChangeEventDescriptor.setDisplayName( DesignMessageUtil.getMessage(DesignUtil.class, "DesignUtil.event.valueChange")); //NOI18N valueChangeEventDescriptor.setValue(Constants.EventSetDescriptor.BINDING_PROPERTY, new Class[] {FacesContext.class, UIComponent.class, Object.class})}, null, null); validateEventDescriptor.setDisplayName( DesignMessageUtil.getMessage(DesignUtil.class, "DesignUtil.event.validate")); validateEventDescriptor.setValue(Constants.EventSetDescriptor.BINDING_PROPERTY,