예제 #1
0
 @UiHandler("filter")
 public void onFilterSelected(KeyUpEvent event) {
   if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER
       || filter.getTextBox().getText().isEmpty()) {
     // variables list has changed so update all
     getUiHandlers().filterVariables(filter.getTextBox().getText());
   }
 }
예제 #2
0
 @Override
 public void setFilterText(String text) {
   filter.setText(text);
 }
예제 #3
0
 @Override
 public String getFilterText() {
   return filter.getText();
 }
예제 #4
0
 private void initializeDisplayOptions() {
   filter.getClear().setTitle(translations.clearFilter());
   filter.getTextBox().setPlaceholder(translations.filterVariables());
 }