コード例 #1
0
 @Override
 public void setMode(Mode mode) {
   if (mode == Mode.SINGLE_LINE) {
     delegate.setMode(ExpandingTextBoxMode.SINGLE_LINE);
   } else {
     delegate.setMode(ExpandingTextBoxMode.MULTI_LINE);
   }
 }
コード例 #2
0
 @Override
 public void setPrimitiveDataStyleName(Optional<String> styleName) {
   checkNotNull(styleName);
   if (lastStyleName.isPresent()) {
     delegate.getSuggestBox().removeStyleName(lastStyleName.get());
   }
   lastStyleName = styleName;
   if (styleName.isPresent()) {
     delegate.getSuggestBox().addStyleName(styleName.get());
   }
 }
コード例 #3
0
 @Override
 public HandlerRegistration addSelectionHandler(final SelectionHandler<EntitySuggestion> handler) {
   final HandlerRegistration handlerReg = addHandler(handler, SelectionEvent.getType());
   final HandlerRegistration delegateReg =
       delegate.addSelectionHandler(
           new SelectionHandler<SuggestOracle.Suggestion>() {
             @Override
             public void onSelection(SelectionEvent<SuggestOracle.Suggestion> event) {
               SuggestOracle.Suggestion suggestion = event.getSelectedItem();
               if (suggestion instanceof EntitySuggestion) {
                 SelectionEvent.fire(
                     PrimitiveDataEditorViewImpl.this, (EntitySuggestion) suggestion);
               }
             }
           });
   return new HandlerRegistration() {
     @Override
     public void removeHandler() {
       handlerReg.removeHandler();
       delegateReg.removeHandler();
     }
   };
 }
コード例 #4
0
 @Override
 public void setAnchorTitle(String title) {
   delegate.setAnchorTitle(title);
 }
コード例 #5
0
 @Override
 public void setAnchorVisible(boolean b) {
   delegate.setAnchorVisible(b);
 }
コード例 #6
0
 @Override
 public void setAutoSelectSuggestions(boolean autoSelectSuggestions) {
   delegate.setAutoSelectSuggestions(autoSelectSuggestions);
 }
コード例 #7
0
 @Override
 public void setSuggestOracle(SuggestOracle oracle) {
   delegate.setOracle(oracle);
 }
コード例 #8
0
 @Override
 public HandlerRegistration addFocusHandler(FocusHandler handler) {
   return delegate.addFocusHandler(handler);
 }
コード例 #9
0
 @Override
 public void setText(String text) {
   delegate.setText(text);
 }
コード例 #10
0
 @Override
 public String getText() {
   return delegate.getText();
 }
コード例 #11
0
 @Override
 public void setPlaceholder(String placeholder) {
   delegate.setPlaceholder(placeholder);
 }
コード例 #12
0
 @Override
 public String getPlaceholder() {
   return delegate.getPlaceholder();
 }
コード例 #13
0
 @Override
 public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) {
   return delegate.addKeyUpHandler(handler);
 }
コード例 #14
0
 @Override
 public HandlerRegistration addAnchorClickedHandler(AnchorClickedHandler handler) {
   return delegate.addAnchorClickedHandler(handler);
 }
コード例 #15
0
 @Override
 public HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> handler) {
   return delegate.addValueChangeHandler(handler);
 }
コード例 #16
0
 @Override
 public boolean isEnabled() {
   return delegate.isEnabled();
 }
コード例 #17
0
 @Override
 public void setEnabled(boolean enabled) {
   delegate.setEnabled(enabled);
 }