* 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++) {