/** * Add an option. * * @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(String returnValue, Message message) throws WingException { Option option = this.addOption(returnValue); option.addContent(message); }
/** * Add an option. * * @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(String returnValue, Message message) throws WingException { Option option = this.addOption(returnValue); option.addContent(message); }
/** * Add a select option. * * @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(String returnValue, Message message) throws WingException { Option option = this.addOption(returnValue); option.addContent(message); }
/** * Add an option. * * @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(int returnValue, String characters) throws WingException { Option option = this.addOption(String.valueOf(returnValue)); option.addContent(characters); }
/** * Add an option. * * @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(String returnValue, String characters) throws WingException { Option option = this.addOption(returnValue); option.addContent(characters); }
/** * Add an option. * * @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(int returnValue, Message message) throws WingException { Option option = this.addOption(String.valueOf(returnValue)); option.addContent(message); }
/** * Add a select option. * * @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(String returnValue, String characters) throws WingException { Option option = this.addOption(returnValue); option.addContent(characters); }
/** * Add an option. * * @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(String returnValue, String characters) throws WingException { Option option = this.addOption(returnValue); option.addContent(characters); }
/** * Add a select option. * * @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(int returnValue, String characters) throws WingException { Option option = this.addOption(String.valueOf(returnValue)); option.addContent(characters); }
/** * Add a select option. * * @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(int returnValue, Message message) throws WingException { Option option = this.addOption(String.valueOf(returnValue)); option.addContent(message); }
/** * Add an option. * * @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(int returnValue, Message message) throws WingException { Option option = this.addOption(String.valueOf(returnValue)); option.addContent(message); }
/** * Add an option. * * @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(int returnValue, String characters) throws WingException { Option option = this.addOption(String.valueOf(returnValue)); option.addContent(characters); }
/** * Build a conjunction field in the given for the given cell. A * conjunction consists of logical the operators AND, OR, NOT. * * @param row The current row * @param cell The current cell */ private void buildConjunctionField(int row, Cell cell) throws WingException { // No conjunction for the first row. if (row == 1) { return; } Request request = ObjectModelHelper.getRequest(objectModel); String current = request.getParameter("conjunction" + row); // default to AND if nothing specified. if (current == null || current.length() == 0) { current = "AND"; } Select select = cell.addSelect("conjunction" + row); select.addOption("AND".equals(current), "AND").addContent(T_and); select.addOption("OR".equals(current), "OR").addContent(T_or); select.addOption("NOT".equals(current), "NOT").addContent(T_not); }
select.addOption((current == null), "ANY").addContent( message("xmlui.ArtifactBrowser.AdvancedSearch.type_ANY")); select.addOption(field.equals(current), field).addContent(message("xmlui.ArtifactBrowser.AdvancedSearch.type_" + field));
option.addContent(message("xmlui.ArtifactBrowser.SimpleSearch.filter." + field)); if (hasPattern) { String[] years = matcher.group(0).replace("[", "").replace("]", "").split(" TO "); option.addContent(": " + years[0] + " - " + years[1]); continue; option.addContent(": " + fq.getDisplayedValue());