/** @see #make(UIContainer, String, String, String[]) */ public static UIInputMany make(UIContainer parent, String ID, String binding) { return make(parent, ID, binding, null); } }
/** * Constructs a multiple selection control, where the submitted values are * identical with the rendered labels. Named differently to allow overload * where the final parameter is null. */ public static UISelect makeMultiple(UIContainer tofill, String ID, String[] options, String valuebinding, String[] initvalue) { UISelect togo = make(tofill, ID, options); UIInputMany selection = UIInputMany.make(valuebinding); if (initvalue != null) { selection.setValue(initvalue); } togo.selection = selection; return togo; }
/** * Constructs a multiple selection control, with distinct submitted values and * rendered labels. */ public static UISelect makeMultiple(UIContainer tofill, String ID, String[] options, String[] labels, String valuebinding, String[] initvalue) { UISelect togo = make(tofill, ID, options); UIInputMany selection = UIInputMany.make(valuebinding); if (initvalue != null) { selection.setValue(initvalue); } if (labels != null) { togo.optionnames = UIOutputMany.make(labels); } togo.selection = selection; return togo; }