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

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

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

origin: com.manydesigns/elements

public Map<Object, SelectionModel.Option> getOptions() {
  return selectionModel.getOptions(selectionModelIndex);
}
origin: com.manydesigns/elements

public Map<Object, SelectionModel.Option> getOptions() {
  return selectionModel.getOptions(selectionModelIndex);
}
origin: ManyDesigns/Portofino

public Map<Object, SelectionModel.Option> getOptions() {
  return selectionModel.getOptions(selectionModelIndex);
}
origin: ManyDesigns/Portofino

public Map<Object, SelectionModel.Option> getOptions() {
  return selectionModel.getOptions(selectionModelIndex);
}
origin: ManyDesigns/Portofino

public void valueToXhtmlEditRadio(XhtmlBuffer xb) {
  Object value = selectionModel.getValue(selectionModelIndex);
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
  int counter = 0;
  
  if (!required) {
    String radioId = id + "_" + counter;
    boolean checked = (value == null);
    writeRadioWithLabel(xb, radioId,
        getText("elements.field.select.none"), "", checked);
    counter++;
  }
  for (Map.Entry<Object,SelectionModel.Option> option :
      options.entrySet()) {
    if(!option.getValue().active) {
      continue;
    }
    Object optionValue = option.getKey();
    String optionStringValue =
        (String) OgnlUtils.convertValue(optionValue, String.class);
    String optionLabel = option.getValue().label;
    String radioId = id + "_" + counter;
    boolean checked =  optionValue.equals(value);
    writeRadioWithLabel(xb, radioId, optionLabel,
        optionStringValue, checked);
    counter++;
  }
  // TODO: gestire radio in cascata
}
origin: com.manydesigns/elements

public void valueToXhtmlEditRadio(XhtmlBuffer xb) {
  Object value = selectionModel.getValue(selectionModelIndex);
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
  int counter = 0;
  
  if (!required) {
    String radioId = id + "_" + counter;
    boolean checked = (value == null);
    writeRadioWithLabel(xb, radioId,
        getText("elements.field.select.none"), "", checked);
    counter++;
  }
  for (Map.Entry<Object,SelectionModel.Option> option :
      options.entrySet()) {
    if(!option.getValue().active) {
      continue;
    }
    Object optionValue = option.getKey();
    String optionStringValue =
        (String) OgnlUtils.convertValue(optionValue, String.class);
    String optionLabel = option.getValue().label;
    String radioId = id + "_" + counter;
    boolean checked =  optionValue.equals(value);
    writeRadioWithLabel(xb, radioId, optionLabel,
        optionStringValue, checked);
    counter++;
  }
  // TODO: gestire radio in cascata
}
origin: com.manydesigns/elements

value = null;
Map<Object, SelectionModel.Option> options = selectionModel.getOptions(selectionModelIndex);
boolean found = false;
for(SelectionModel.Option option : options.values()) {
origin: ManyDesigns/Portofino

public void valueToXhtmlEditDropDown(XhtmlBuffer xb) {
  Object value = selectionModel.getValue(selectionModelIndex);
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
origin: com.manydesigns/elements

public void valueToXhtmlEditDropDown(XhtmlBuffer xb) {
  Object value = selectionModel.getValue(selectionModelIndex);
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
origin: com.manydesigns/elements

Map<Object, SelectionModel.Option> options = selectionModel.getOptions(selectionModelIndex);
boolean found = false;
for(SelectionModel.Option option : options.values()) {
origin: com.manydesigns/elements

private void valueToXhtmlCheckbox(XhtmlBuffer xb) {
  xb.writeLabel(StringUtils.capitalize(label), id, ATTR_NAME_HTML_CLASS);
  Object[] values = getValues();
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
  int counter=0;
  for (Map.Entry<Object,SelectionModel.Option> option :
      options.entrySet()) {
    if(!option.getValue().active) {
      continue;
    }
    xb.openElement("div");
    xb.addAttribute("class", FORM_CONTROL_CSS_CLASS + " checkbox");
    Object optionValue = option.getKey();
    String optionStringValue =
        OgnlUtils.convertValueToString(optionValue);
    String optionLabel = option.getValue().label;
    boolean checked =  ArrayUtils.contains(values, optionValue);
    String checkboxId = id + "_" + counter;
    xb.writeInputCheckbox(checkboxId, inputName, optionStringValue, checked);
    xb.openElement("label");
    xb.addAttribute("for", checkboxId);
    xb.write(optionLabel);
    xb.closeElement("label");
    xb.closeElement("div");
    counter++;
  }
}
origin: ManyDesigns/Portofino

private void valueToXhtmlCheckbox(XhtmlBuffer xb) {
  xb.writeLabel(StringUtils.capitalize(label), id, ATTR_NAME_HTML_CLASS);
  Object[] values = getValues();
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
  int counter=0;
  for (Map.Entry<Object,SelectionModel.Option> option :
      options.entrySet()) {
    if(!option.getValue().active) {
      continue;
    }
    xb.openElement("div");
    xb.addAttribute("class", FORM_CONTROL_CSS_CLASS + " checkbox");
    Object optionValue = option.getKey();
    String optionStringValue =
        OgnlUtils.convertValueToString(optionValue);
    String optionLabel = option.getValue().label;
    boolean checked =  ArrayUtils.contains(values, optionValue);
    String checkboxId = id + "_" + counter;
    xb.writeInputCheckbox(checkboxId, inputName, optionStringValue, checked);
    xb.openElement("label");
    xb.addAttribute("for", checkboxId);
    xb.write(optionLabel);
    xb.closeElement("label");
    xb.closeElement("div");
    counter++;
  }
}
origin: ManyDesigns/Portofino

private void valueToXhtmlMultipleSelection(XhtmlBuffer xb) {
  xb.writeLabel(StringUtils.capitalize(label), id, ATTR_NAME_HTML_CLASS);
  xb.openElement("div");
  xb.addAttribute("class", FORM_CONTROL_CSS_CLASS + " multiple-select");
  Object[] values = getValues();
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
  xb.openElement("select");
  xb.addAttribute("id", id);
  xb.addAttribute("name", inputName);
  xb.addAttribute("multiple", "multiple");
  xb.addAttribute("size", "5");
  boolean checked;
  for (Map.Entry<Object,SelectionModel.Option> option :
      options.entrySet()) {
    if(!option.getValue().active) {
      continue;
    }
    Object optionValue = option.getKey();
    String optionStringValue =
        OgnlUtils.convertValueToString(optionValue);
    String optionLabel = option.getValue().label;
    checked =  ArrayUtils.contains(values, optionValue);
    xb.writeOption(optionStringValue, checked, optionLabel);
  }
  xb.closeElement("select");
  xb.closeElement("div");
}
origin: com.manydesigns/elements

public void valueToXhtmlRadio(XhtmlBuffer xb) {
  Object[] values = getValues();
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
origin: ManyDesigns/Portofino

public void valueToXhtmlRadio(XhtmlBuffer xb) {
  Object[] values = getValues();
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
origin: com.manydesigns/elements

private void valueToXhtmlMultipleSelection(XhtmlBuffer xb) {
  xb.writeLabel(StringUtils.capitalize(label), id, ATTR_NAME_HTML_CLASS);
  xb.openElement("div");
  xb.addAttribute("class", FORM_CONTROL_CSS_CLASS + " multiple-select");
  Object[] values = getValues();
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
  xb.openElement("select");
  xb.addAttribute("id", id);
  xb.addAttribute("name", inputName);
  xb.addAttribute("multiple", "multiple");
  xb.addAttribute("size", "5");
  boolean checked;
  for (Map.Entry<Object,SelectionModel.Option> option :
      options.entrySet()) {
    if(!option.getValue().active) {
      continue;
    }
    Object optionValue = option.getKey();
    String optionStringValue =
        OgnlUtils.convertValueToString(optionValue);
    String optionLabel = option.getValue().label;
    checked =  ArrayUtils.contains(values, optionValue);
    xb.writeOption(optionStringValue, checked, optionLabel);
  }
  xb.closeElement("select");
  xb.closeElement("div");
}
origin: com.manydesigns/elements

    selectionModel.getOptions(selectionModelIndex);
xb.openElement("select");
xb.addAttribute("id", id);
origin: ManyDesigns/Portofino

    selectionModel.getOptions(selectionModelIndex);
xb.openElement("select");
xb.addAttribute("id", id);
origin: com.manydesigns/elements

public String jsonSelectFieldOptions(boolean includeSelectPrompt) {
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
origin: ManyDesigns/Portofino

public String jsonSelectFieldOptions(boolean includeSelectPrompt) {
  Map<Object, SelectionModel.Option> options =
      selectionModel.getOptions(selectionModelIndex);
com.manydesigns.elements.optionsSelectionModelgetOptions

Popular methods of SelectionModel

  • setValue
  • getLabelSearch
  • getName
  • getOption
  • 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
  • From CI to AI: The AI layer in your organization
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