Examples of ChosenImpl


Examples of com.arcbees.chosen.client.ChosenImpl

        $(getElement()).as(Chosen).destroy()
                .chosen(options, ensureChosenHandlers());
    }

    public GQuery getChosenElement() {
        ChosenImpl impl = $(getElement()).data(CHOSEN_DATA_KEY,
                ChosenImpl.class);
        if (impl != null) {
            return impl.getContainer();
        }
        return $();
    }
View Full Code Here

Examples of com.arcbees.chosen.client.ChosenImpl

     * Return the values of all selected options in an array.
     * Usefull to know which options are selected in case of multiple ChosenListBox
     * @return
     */
    public String[] getValues() {
        ChosenImpl impl = $(getElement()).data(CHOSEN_DATA_KEY, ChosenImpl.class);

        if (impl != null) {
            List<String> selectedValues = impl.getSelectedValues();
            return selectedValues.toArray(new String[selectedValues.size()]);
        } else {
            JsArrayString values = JsArrayString.createArray().cast();
            NodeList<OptionElement> options = SelectElement.as(getElement()).getOptions();
            for (int i = 0; i < options.getLength(); i++) {
View Full Code Here

Examples of com.watopi.chosen.client.ChosenImpl

    $(getElement()).as(Chosen).destroy()
        .chosen(options, ensureChosenHandlers());
  }

  protected GQuery getChosenElement() {
    ChosenImpl impl = $(getElement()).data(CHOSEN_DATA_KEY,
        ChosenImpl.class);
    if (impl != null) {
      return impl.getContainer();
    }
    return $();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.