org.gwtbootstrap3.extras.select.client.ui.Option.getText()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(101)

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

Option.getText介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

@Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  super.onActivityResult(requestCode, resultCode, data);
  if (resultCode == RESULT_OK && requestCode == PromptsActivity.RADIO_BUTTON_CODE) {
   Option option = data.getParcelableExtra(RADIO_BUTTON_SELECTED);
   Log.e("radio button result Ok", option.getText());
   Toast.makeText(PromptsActivity.this, "Selected Radio button is: " + option.getText(), Toast.LENGTH_SHORT).show();
  }
else{
  Log.e("radio bttn result null", "failed");
}

 }

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3-extras

/**
 * Returns the value of the option. If no value, fall-back
 * to the displayed option text.
 */
@Override
public String getValue() {
  String value = attrMixin.getAttribute(VALUE);
  return value.isEmpty() ? getText() : value;
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3-extras

/**
 * Returns the value of the option. If no value, fall-back
 * to the displayed option text.
 */
@Override
public String getValue() {
  String value = attrMixin.getAttribute(VALUE);
  return value.isEmpty() ? getText() : value;
}

代码示例来源:origin: kiegroup/appformer

@Override
public void deleteOrganizationalUnit(final OrganizationalUnit ou) {
  Option optToDelete = null;
  for (int i = 0; i < organizationalUnitDropdown.getWidgetCount(); i++) {
    final Widget w = organizationalUnitDropdown.getWidget(i);
    if (w instanceof Option) {
      final Option o = (Option) w;
      if (o.getText().equals(ou.getName())) {
        optToDelete = o;
        break;
      }
    }
  }
  if (optToDelete != null) {
    organizationalUnitDropdown.remove(optToDelete);
    organizationalUnitDropdown.refresh();
  }
}

代码示例来源:origin: org.guvnor/guvnor-structure-client

@Override
public void deleteOrganizationalUnit(final OrganizationalUnit ou) {
  Option optToDelete = null;
  for (int i = 0; i < organizationalUnitDropdown.getWidgetCount(); i++) {
    final Widget w = organizationalUnitDropdown.getWidget(i);
    if (w instanceof Option) {
      final Option o = (Option) w;
      if (o.getText().equals(ou.getName())) {
        optToDelete = o;
        break;
      }
    }
  }
  if (optToDelete != null) {
    organizationalUnitDropdown.remove(optToDelete);
    organizationalUnitDropdown.refresh();
  }
}

相关文章