本文整理汇总了Java中com.smartgwt.client.widgets.form.fields.RadioGroupItem.setShowTitle方法的典型用法代码示例。如果您正苦于以下问题:Java RadioGroupItem.setShowTitle方法的具体用法?Java RadioGroupItem.setShowTitle怎么用?Java RadioGroupItem.setShowTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.smartgwt.client.widgets.form.fields.RadioGroupItem
的用法示例。
在下文中一共展示了RadioGroupItem.setShowTitle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createFilterCategorySelectionGroup
import com.smartgwt.client.widgets.form.fields.RadioGroupItem; //导入方法依赖的package包/类
FormItem createFilterCategorySelectionGroup(String serviceUrl) {
if (stationFilterGroups.containsKey(serviceUrl)) {
RadioGroupItem selector = stationFilterGroups.get(serviceUrl);
return selector;
}
RadioGroupItem radioGroup = new RadioGroupItem("sosDataSource");
radioGroup.setShowTitle(false);
radioGroup.addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent event) {
Object value = event.getValue();
if (value != null) {
hideInfoWindow();
controller.setStationFilter(value.toString());
controller.updateContentUponStationFilter();
}
}
});
stationFilterGroups.put(serviceUrl, radioGroup);
return radioGroup;
}
示例2: createFilter
import com.smartgwt.client.widgets.form.fields.RadioGroupItem; //导入方法依赖的package包/类
private DynamicForm createFilter() {
DynamicForm form = new DynamicForm();
form.setBrowserSpellCheck(false);
form.setValidateOnExit(true);
form.setSaveOnEnter(true);
form.setAutoHeight();
form.setWidth100();
form.setNumCols(3);
final RadioGroupItem filterType = new RadioGroupItem(DigitalObjectResourceApi.SEARCH_TYPE_PARAM);
filterType.setVertical(false);
filterType.setShowTitle(false);
filterType.setWrap(false);
// setRedrawOnChange(true) enforces evaluation of other FormItem.setShowIfCondition
filterType.setRedrawOnChange(true);
filterType.setColSpan(2);
final LinkedHashMap<String, String> filterMap = new LinkedHashMap<String, String>();
filterMap.put(FILTER_LAST_CREATED, i18n.DigitalObjectSearchView_FilterGroupLastCreated_Title());
filterMap.put(FILTER_LAST_MODIFIED, i18n.DigitalObjectSearchView_FilterGroupLastModified_Title());
if (!Editor.getInstance().hasPermission("proarc.permission.repository.search.groupOwner")) {
filterMap.put(FILTER_PHRASE, i18n.DigitalObjectSearchView_FilterGroupPhrase_Title());
}
filterMap.put(FILTER_QUERY, i18n.DigitalObjectSearchView_FilterGroupAdvanced_Title());
filterType.setValueMap(filterMap);
filterType.setValue(FILTER_LAST_CREATED);
FormItemIfFunction showIfAdvanced = new StringMatchFunction(filterType, FILTER_QUERY);
FormItemIfFunction showIfPhrase = new StringMatchFunction(filterType, FILTER_PHRASE);
final TextItem phrase = createAdvancedItem(DigitalObjectResourceApi.SEARCH_PHRASE_PARAM,
i18n.DigitalObjectSearchView_FilterPhrase_Title(), showIfPhrase);
phrase.setValidators(new RequiredIfValidator(new RequiredIfFunction() {
@Override
public boolean execute(FormItem formItem, Object value) {
return FILTER_PHRASE.equals(filterType.getValueAsString());
}
}), new LengthRangeValidator() {{
setMax(1000);
}});
SubmitItem submit = new SubmitItem("search", i18n.DigitalObjectSearchView_FilterSearchButton_Title());
form.setFields(filterType, new SpacerItem() {{setWidth("100%");}},
phrase,
createAdvancedItem(DigitalObjectResourceApi.SEARCH_QUERY_TITLE_PARAM,
i18n.DigitalObjectSearchView_FilterAdvancedTitle_Title(), showIfAdvanced),
createAdvancedItem(DigitalObjectResourceApi.SEARCH_QUERY_IDENTIFIER_PARAM,
i18n.DigitalObjectSearchView_FilterAdvancedIdentifier_Title(), showIfAdvanced),
createAdvancedItem(DigitalObjectResourceApi.SEARCH_QUERY_CREATOR_PARAM,
i18n.DigitalObjectSearchView_FilterAdvancedCreator_Title(), showIfAdvanced),
createAdvancedItem(DigitalObjectResourceApi.SEARCH_QUERY_LABEL_PARAM,
i18n.DigitalObjectSearchView_FilterAdvancedLabel_Title(), showIfAdvanced),
createAdvancedItem(DigitalObjectResourceApi.SEARCH_OWNER_PARAM,
i18n.DigitalObjectSearchView_FilterAdvancedOwner_Title(), showIfAdvanced),
createModelItem(i18n.DigitalObjectSearchView_FilterAdvancedModel_Title(),
new StringMatchFunction(filterType, FILTER_LAST_CREATED, FILTER_LAST_MODIFIED, FILTER_QUERY)),
submit);
form.addSubmitValuesHandler(new SubmitValuesHandler() {
@Override
public void onSubmitValues(SubmitValuesEvent event) {
if (filters.validate(false)) {
filter();
}
}
});
return form;
}