Java Code Examples for

The following examples show how to use These examples are extracted from open source projects. 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
private TextField createIntegerTextField(final String in18Key, final String id) {
    final TextField textField = createTextField(in18Key, id, 32);
    textField.setConverter(new StringToIntegerConverter());
    return textField;
Example 2
Source Project: hawkbit   Source File:    License: Eclipse Public License 1.0 5 votes vote down vote up
private TextField createPercentageField(final String in18Key, final String id) {
    final TextField textField = new TextFieldBuilder(32).prompt(i18n.getMessage(in18Key)).id(id)
    textField.setWidth(80, Unit.PIXELS);
    textField.setConverter(new StringToIntegerConverter());
    return textField;