本文整理了Java中com.google.gwt.user.client.ui.ListBox.addKeyUpHandler()
方法的一些代码示例,展示了ListBox.addKeyUpHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListBox.addKeyUpHandler()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.ListBox
类名称:ListBox
方法名:addKeyUpHandler
暂无
代码示例来源:origin: de.esoco/gewt
/***************************************
* Creates a widget that contains the comparisons for a table filter.
*
* @param cInitialValue The initial character to select or -1 for none
*
* @return The new widget
*/
private ListBox createComparisonsWidget(char cInitialValue)
{
ListBox aComparisons = new ListBox();
int nChars = CONSTRAINT_COMPARISON_CHARS.length();
int nSelection = 0;
if (cInitialValue != ' ')
{
nSelection = CONSTRAINT_COMPARISON_CHARS.indexOf(cInitialValue);
}
aComparisons.setTitle(expand("$ttTableFilterComparison"));
aComparisons.setVisibleItemCount(1);
for (int i = 0; i < nChars; i++)
{
aComparisons.addItem("" + CONSTRAINT_COMPARISON_CHARS.charAt(i));
}
aComparisons.setSelectedIndex(nSelection);
aComparisons.addKeyUpHandler(getComplexFilterKeyUpHandler());
return aComparisons;
}
代码示例来源:origin: org.kie.guvnor/guvnor-guided-rule-editor-client
private ListBox makeChoicesListBox() {
choices = new ListBox( true );
choices.setPixelSize( getChoicesWidth(),
getChoicesHeight() );
choices.addKeyUpHandler( new KeyUpHandler() {
public void onKeyUp( com.google.gwt.event.dom.client.KeyUpEvent event ) {
if ( event.getNativeKeyCode() == KeyCodes.KEY_ENTER ) {
selectSomething();
}
}
} );
addDSLSentences();
if ( !bOnlyShowDSLConditions ) {
addFacts();
addExistentialConditionalElements();
addFromConditionalElements();
addFreeFormDrl();
}
return choices;
}
代码示例来源:origin: de.esoco/gewt
aColumnList.addKeyUpHandler(getComplexFilterKeyUpHandler());
((ListBox) rValueInput).addKeyUpHandler(getComplexFilterKeyUpHandler());
代码示例来源:origin: org.kie.guvnor/guvnor-guided-rule-editor-client
private ListBox makeChoicesListBox() {
choices = new ListBox( true );
choices.setPixelSize( getChoicesWidth(),
getChoicesHeight() );
choices.addKeyUpHandler( new KeyUpHandler() {
public void onKeyUp( com.google.gwt.event.dom.client.KeyUpEvent event ) {
if ( event.getNativeKeyCode() == KeyCodes.KEY_ENTER ) {
selectSomething();
}
}
} );
addDSLSentences();
if ( !bOnlyShowDSLConditions ) {
addUpdateNotModify();
addGlobals();
addRetractions();
addModifies();
addInsertions();
addLogicalInsertions();
addGlobalCollections();
addFreeFormDRL();
}
return choices;
}
内容来源于网络,如有侵权,请联系作者删除!