Java Code Examples for com.google.gwt.user.client.ui.TextBox#setReadOnly()

The following examples show how to use com.google.gwt.user.client.ui.TextBox#setReadOnly() . 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: AdditionalChoicePropertyEditor.java    From appinventor-extensions with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new additional choice dialog.
 */
protected AdditionalChoicePropertyEditor() {
  summary = new TextBox();
  summary.setReadOnly(true);
  summary.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      openAdditionalChoiceDialog();
    }
  });

  initWidget(summary);
}