本文整理了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
暂无
代码示例来源: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());
内容来源于网络,如有侵权,请联系作者删除!