Tabnine Logo
SelectionModel.getOption
Code IndexAdd Tabnine to your IDE (free)

How to use
getOption
method
in
com.manydesigns.elements.options.SelectionModel

Best Java code snippets using com.manydesigns.elements.options.SelectionModel.getOption (Showing top 6 results out of 315)

origin: com.manydesigns/elements

public String getStringValue() {
  Object value = selectionModel.getValue(selectionModelIndex);
  String result = selectionModel.getOption(selectionModelIndex, value, true);
  logger.trace("getStringValue() - name: {} - value: {} - result: {}", new Object[] {getPropertyAccessor().getName(), value, result});
  return result;
}
origin: ManyDesigns/Portofino

} else {
  value = OgnlUtils.convertValue(stringValue, accessor.getType());
  String label = selectionModel.getOption(selectionModelIndex, value, true);
  search = userValue != null && !StringUtils.equals(userValue, label);
origin: com.manydesigns/elements

} else {
  value = OgnlUtils.convertValue(stringValue, accessor.getType());
  String label = selectionModel.getOption(selectionModelIndex, value, true);
  search = userValue != null && !StringUtils.equals(userValue, label);
origin: ManyDesigns/Portofino

public String getStringValue() {
  Object value = selectionModel.getValue(selectionModelIndex);
  String result = selectionModel.getOption(selectionModelIndex, value, true);
  logger.trace("getStringValue() - name: {} - value: {} - result: {}", new Object[] {getPropertyAccessor().getName(), value, result});
  return result;
}
origin: ManyDesigns/Portofino

public void valueToXhtmlAutocomplete(XhtmlBuffer xb) {
  xb.writeLabel(StringUtils.capitalize(label), id, ATTR_NAME_HTML_CLASS);
  Object value = selectionModel.getValue(selectionModelIndex);
  String stringValue = OgnlUtils.convertValueToString(value);
  xb.writeInputHidden(id, inputName, stringValue);
  String label = selectionModel.getOption(selectionModelIndex, value, true);
  xb.openElement("input");
  xb.addAttribute("id", autocompleteId);
  xb.addAttribute("type", "text");
  xb.addAttribute("name", autocompleteInputName);
  xb.addAttribute("value", label);
  xb.addAttribute("class", FORM_CONTROL_CSS_CLASS);
  xb.addAttribute("size", null);
  xb.closeElement("input");
  String js = composeAutocompleteJs();
  xb.writeJavaScript(js);
}
origin: com.manydesigns/elements

public void valueToXhtmlAutocomplete(XhtmlBuffer xb) {
  xb.writeLabel(StringUtils.capitalize(label), id, ATTR_NAME_HTML_CLASS);
  Object value = selectionModel.getValue(selectionModelIndex);
  String stringValue = OgnlUtils.convertValueToString(value);
  xb.writeInputHidden(id, inputName, stringValue);
  String label = selectionModel.getOption(selectionModelIndex, value, true);
  xb.openElement("input");
  xb.addAttribute("id", autocompleteId);
  xb.addAttribute("type", "text");
  xb.addAttribute("name", autocompleteInputName);
  xb.addAttribute("value", label);
  xb.addAttribute("class", FORM_CONTROL_CSS_CLASS);
  xb.addAttribute("size", null);
  xb.closeElement("input");
  String js = composeAutocompleteJs();
  xb.writeJavaScript(js);
}
com.manydesigns.elements.optionsSelectionModelgetOption

Popular methods of SelectionModel

  • setValue
  • getLabelSearch
  • getName
  • getOptions
  • getValue
  • setLabelSearch

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now