com.google.gwt.user.client.ui.ListBox.addKeyDownHandler()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中com.google.gwt.user.client.ui.ListBox.addKeyDownHandler()方法的一些代码示例,展示了ListBox.addKeyDownHandler()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListBox.addKeyDownHandler()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.ListBox
类名称:ListBox
方法名:addKeyDownHandler

ListBox.addKeyDownHandler介绍

暂无

代码示例

代码示例来源:origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

public PopupValueListDropDownEditCell( final String[] items,
                    final boolean isReadOnly ) {
  super( isReadOnly );
  this.listBox = new ListBox();
  setItems( items );
  // Tabbing out of the ListBox commits changes
  listBox.addKeyDownHandler( new KeyDownHandler() {
    public void onKeyDown( KeyDownEvent event ) {
      boolean keyTab = event.getNativeKeyCode() == KeyCodes.KEY_TAB;
      boolean keyEnter = event.getNativeKeyCode() == KeyCodes.KEY_ENTER;
      if ( keyEnter
          || keyTab ) {
        commit();
      }
    }
  } );
  vPanel.add( listBox );
}

代码示例来源:origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

public PopupBoundPatternDropDownEditCell( EventBus eventBus,
                     boolean isReadOnly ) {
  super( isReadOnly );
  this.listBox = new ListBox();
  // Tabbing out of the ListBox commits changes
  listBox.addKeyDownHandler( new KeyDownHandler() {
    public void onKeyDown( KeyDownEvent event ) {
      boolean keyTab = event.getNativeKeyCode() == KeyCodes.KEY_TAB;
      boolean keyEnter = event.getNativeKeyCode() == KeyCodes.KEY_ENTER;
      if ( keyEnter || keyTab ) {
        commit();
      }
    }
  } );
  vPanel.add( listBox );
  //Wire-up the events
  eventBus.addHandler( BoundFactsChangedEvent.TYPE,
             this );
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit

protected void createChoiceList() {
  choiceList = new ListBox();
  choiceList.setStyleName("list");
  choiceList.addKeyDownHandler(this);
  choiceList.addDoubleClickHandler(this);
  choiceList.addChangeHandler(this);
  choiceList.setStylePrimaryName("aceeditor-suggestpopup-list");
  setWidget(choiceList);
}

代码示例来源:origin: org.vaadin.addons/aceeditor

private void createChoiceList() {
  choiceList = new ListBox();
  choiceList.setStyleName("list");
  choiceList.addKeyDownHandler(this);
  choiceList.addDoubleClickHandler(this);
  choiceList.addChangeHandler(this);
  choiceList.setStylePrimaryName("aceeditor-suggestpopup-list");
  setWidget(choiceList);
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

typesList.addKeyDownHandler(
  event -> {
   if (KeyCodes.KEY_ESCAPE == event.getNativeKeyCode()) {

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

machinesList.addKeyDownHandler(
  event -> {
   if (KeyCodes.KEY_ESCAPE == event.getNativeKeyCode()) {

代码示例来源:origin: de.esoco/gewt

((ListBox) rValueInput).addKeyDownHandler(getComplexFilterKeyDownHandler());
((ListBox) rValueInput).addKeyUpHandler(getComplexFilterKeyUpHandler());

相关文章