Example usage for com.google.gwt.dom.client OptionElement getInnerText

List of usage examples for com.google.gwt.dom.client OptionElement getInnerText

Introduction

In this page you can find the example usage for com.google.gwt.dom.client OptionElement getInnerText.

Prototype

@Override
    public String getInnerText() 

Source Link

Usage

From source file:com.google.speedtracer.client.view.Controller.java

License:Apache License

/**
 * Gets the url for the page at a specific index in our select box. This DOES
 * NOT DO BOUNDS CHECKING./* w w  w.  ja  v a  2s . c  o m*/
 * 
 * @param index
 * @return the String corresponding to the page URL
 */
public String getPageUrlForIndex(int index) {
    OptionElement option = getOptionAtIndex((SelectElement) pages.getElement(), index);
    return option.getInnerText();
}

From source file:com.tractionsoftware.gwt.user.client.ui.GroupedListBox.java

License:Apache License

@Override
public String getItemText(int index) {
    OptionElement opt = getOption(index);
    return opt.getInnerText();
}