throw new UnsupportedOperationException();
}
public void addScriptlet(String name, Class<? extends JRAbstractScriptlet> type)
{
JRDesignScriptlet scriptlet = new JRDesignScriptlet();
scriptlet.setName(name);
scriptlet.setValueClass(type);
JRDesignParameter parameter = new JRDesignParameter();
parameter.setName(name + JRScriptlet.SCRIPTLET_PARAMETER_NAME_SUFFIX);
parameter.setValueClass(scriptlet.getValueClass());
parameter.setSystemDefined(true);
parameter.setForPrompting(false);
scriptlets.add(scriptlet);
parameters.add(parameter);