/** * Add an option. * * @param selected * (Required) Set the option as selected. * @param returnValue * (Required) The value to be passed back if this option is * selected. * @param message * (Required) The transalted text to set as the visible option. */ public void addOption(boolean selected, String returnValue, Message message) throws WingException { if (selected) { setOptionSelected(returnValue); } addOption(returnValue,message); }
/** * Add an option. * * @param selected * (Required) Set the option is checked * @param returnValue * (Required) The value to be passed back if this option is * checked. * @param characters * (Required) The text to set as the visible option. */ public void addOption(boolean selected,String returnValue, String characters) throws WingException { if (selected) { setOptionSelected(returnValue); } addOption(returnValue,characters); }
/** * Add an option. * * @param selected * (Required) Set the option is checked * @param returnValue * (Required) The value to be passed back if this option is * checked. */ public Option addOption(boolean selected, String returnValue) throws WingException { if (selected) { setOptionSelected(returnValue); } return addOption(returnValue); }
/** * Add an option. * * @param selected * (Required) Set the field as selected. * @param returnValue * (Required) The value to be passed back if this option is * selected. * @param message * (Required) The transalted text to set as the visible option. */ public void addOption(boolean selected, int returnValue, Message message) throws WingException { if (selected) { setOptionSelected(returnValue); } addOption(returnValue,message); }
/** * Add an option. * * @param selected * (Required) Set the option as selected. * @param returnValue * (Required) The value to be passed back if this option is * selected. * @param characters * (Required) The text to set as the visible option. */ public void addOption(boolean selected, int returnValue, String characters) throws WingException { if (selected) { setOptionSelected(returnValue); } addOption(returnValue,characters); }
((CheckBox)listField).setOptionSelected(dcValue.value);
if (blankLines) optionsField.setOptionSelected("blankLines");
if (submission.hasMultipleTitles()) multipleTitles.setOptionSelected("true"); if (submission.isPublishedBefore()) publishedBefore.setOptionSelected("true");