Java Code Examples for com.google.gwt.dom.client.OptionElement#setInnerText()

The following examples show how to use com.google.gwt.dom.client.OptionElement#setInnerText() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GroupedListBox.java    From swcv with MIT License 5 votes vote down vote up
protected OptionElement createOption(String item, String value)
{
    OptionElement option = Document.get().createOptionElement();
    option.setText(item);
    option.setInnerText(item);
    option.setValue(value);
    return option;
}
 
Example 2
Source File: GroupedListBox.java    From gwt-traction with Apache License 2.0 5 votes vote down vote up
protected OptionElement createOption(String item, String value) {
    OptionElement option = Document.get().createOptionElement();
    option.setText(item);
    option.setInnerText(item);
    option.setValue(value);
    return option;
}
 
Example 3
Source File: MVTagsInput.java    From gwtbootstrap3-extras with Apache License 2.0 5 votes vote down vote up
@Override
public void add(String tag) {
    if (isAttached())
        super.add(tag);
    else {
        OptionElement option = Document.get().createOptionElement();
        option.setValue(tag);
        option.setInnerText(tag);
        getElement().appendChild(option);
    }
}