/** * Sets the options to the given values in the array. * * @param options The options to be set. */ public void setOptions(String[] options) throws Exception { setSize(OptionUtils.parse(options, "size", getDefaultSize())); setThreshold(OptionUtils.parse(options, "threshold", getDefaultThreshold())); super.setOptions(options); }
/** * Sets the options to the given values in the array. * * @param options The options to be set. */ public void setOptions(String[] options) throws Exception { setSize(OptionUtils.parse(options, "size", getDefaultSize())); setThreshold(OptionUtils.parse(options, "threshold", getDefaultThreshold())); super.setOptions(options); }
/** * Returns an enumeration of the options. * * @return Enumeration of the options. */ public Enumeration listOptions() { Vector newVector = new Vector(); OptionUtils.addOption(newVector, sizeTipText(), ""+getDefaultSize(), "size"); OptionUtils.addOption(newVector, thresholdTipText(), ""+getDefaultThreshold(), "threshold"); OptionUtils.add(newVector, super.listOptions()); return OptionUtils.toEnumeration(newVector); }
/** * Returns an enumeration of the options. * * @return Enumeration of the options. */ public Enumeration listOptions() { Vector newVector = new Vector(); OptionUtils.addOption(newVector, sizeTipText(), ""+getDefaultSize(), "size"); OptionUtils.addOption(newVector, thresholdTipText(), ""+getDefaultThreshold(), "threshold"); OptionUtils.add(newVector, super.listOptions()); return OptionUtils.toEnumeration(newVector); }