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