本文整理了Java中com.google.gwt.user.client.ui.ListBox.getSelectedItemText()
方法的一些代码示例,展示了ListBox.getSelectedItemText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListBox.getSelectedItemText()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.ListBox
类名称:ListBox
方法名:getSelectedItemText
[英]Gets the text for currently selected item. If multiple items are selected, this method will return the text of the first selected item.
[中]获取当前选定项的文本。如果选择了多个项目,此方法将返回第一个选定项目的文本。
代码示例来源:origin: GwtMaterialDesign/gwt-material
/**
* Gets the text for currently selected item. If multiple items are
* selected, this method will return the text of the first selected item.
*
* @return the text for selected item, or {@code null} if none is selected
*/
public String getSelectedItemText() {
return listBox.getSelectedItemText();
}
代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material
/**
* Gets the text for currently selected item. If multiple items are
* selected, this method will return the text of the first selected item.
*
* @return the text for selected item, or {@code null} if none is selected
*/
public String getSelectedItemText() {
return listBox.getSelectedItemText();
}
代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client
@Override
public String getSelectedFactType() {
return factTypeList.getSelectedItemText();
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public String getSelectedFactType() {
return factTypeList.getSelectedItemText();
}
代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client
@EventHandler("attributeList")
public void onSelectAttribute(ChangeEvent event) {
page.selectItem(attributeList.getSelectedItemText());
attributeDescription.setAttribute("data-enabled",
attributeList.getSelectedValue());
if (isAttributeDescriptionHidden()) {
showAttributeDescription();
}
}
代码示例来源:origin: kiegroup/drools-wb
@EventHandler("attributeList")
public void onSelectAttribute(ChangeEvent event) {
page.selectItem(attributeList.getSelectedItemText());
attributeDescription.setAttribute("data-enabled",
attributeList.getSelectedValue());
if (isAttributeDescriptionHidden()) {
showAttributeDescription();
}
}
内容来源于网络,如有侵权,请联系作者删除!