use of java.beans.BeanDescriptor in project ACS by ACS-Community.
the class AcceptorBeanBeanInfo method getBeanDescriptorLazy.
protected BeanDescriptor getBeanDescriptorLazy() {
BeanDescriptor bd = new BeanDescriptor(AcceptorBean.class);
BeanTagger.addActions(bd, new String[] { "cern.gp.actions.AcceptAction" });
return bd;
}
use of java.beans.BeanDescriptor in project ACS by ACS-Community.
the class BeanTagger method addActions.
/**
* Adds classes of available actions to this BeanInfo. If the BeanInfo already
* defines some actions the existing ones and the new ones are merged together.
* @param actionClasses an array of the class of available action(s)
*/
public static void addActions(BeanInfo beanInfo, String[] actions) {
BeanDescriptor descriptor = beanInfo.getBeanDescriptor();
if (descriptor == null)
return;
addActions(descriptor, actions);
}
use of java.beans.BeanDescriptor in project jdk8u_jdk by JetBrains.
the class Foo method getBeanDescriptor.
public BeanDescriptor getBeanDescriptor() {
BeanDescriptor bd = new BeanDescriptor(Foo.class);
// set a value to ensure that it's unique
bd.setValue("test", Boolean.TRUE);
return bd;
}
use of java.beans.BeanDescriptor in project jdk8u_jdk by JetBrains.
the class WombatBeanInfo method getBeanDescriptor.
public BeanDescriptor getBeanDescriptor() {
BeanDescriptor bd = new BeanDescriptor(Wombat.class);
// set a value to ensure that it's unique
bd.setValue("test", Boolean.TRUE);
return bd;
}
use of java.beans.BeanDescriptor in project jmeter by apache.
the class TestBeanGUI method getMenuCategories.
/** {@inheritDoc} */
@Override
public Collection<String> getMenuCategories() {
List<String> menuCategories = new LinkedList<>();
BeanDescriptor bd = beanInfo.getBeanDescriptor();
// in expert mode:
if (bd.isExpert() && !JMeterUtils.isExpertMode()) {
return null;
}
int matches = setupGuiClasses(menuCategories);
if (matches == 0) {
log.error("Could not assign GUI class to {}", testBeanClass);
} else if (matches > 1) {
// may be impossible, but no harm in
// checking ...
log.error("More than 1 GUI class found for {}", testBeanClass);
}
return menuCategories;
}
Aggregations