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

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

本文整理了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

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();
  }
}

相关文章