Java Code Examples for com.smartgwt.client.widgets.form.fields.RadioGroupItem#setTitle()
The following examples show how to use
com.smartgwt.client.widgets.form.fields.RadioGroupItem#setTitle() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KrameriusExportAction.java From proarc with GNU General Public License v3.0 | 6 votes |
@Override protected List<FormItem> createExportFormOptions() { List<FormItem> formItems = new ArrayList<>(); //RadioGroupItem requires specifically LinkedHashMap LinkedHashMap<String, String> radioButtonMap = new LinkedHashMap<>(); radioButtonMap.put(K4_POLICY_PUBLIC, i18n.ExportAction_Request_K4_Policy_Public()); radioButtonMap.put(K4_POLICY_PRVIATE, i18n.ExportAction_Request_K4_Policy_Private()); rgi = new RadioGroupItem(); rgi.setTitle(i18n.ExportAction_Request_K4_Policy_Msg()); rgi.setValueMap(radioButtonMap); rgi.setDefaultValue(K4_POLICY_PUBLIC); rgi.setVertical(false); formItems.add(rgi); return formItems; }
Example 2
Source File: ItemFactory.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public static RadioGroupItem newRadioGroup(String name, String title) { RadioGroupItem radioGroupItem = new RadioGroupItem(); radioGroupItem.setName(filterItemName(name)); radioGroupItem.setVertical(false); radioGroupItem.setTitle(I18N.message(title)); radioGroupItem.setWidth(80); return radioGroupItem; }
Example 3
Source File: SelectSubscriptionForm.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private RadioGroupItem createPredefinedEventSelectionItem() { RadioGroupItem radioGroupItem = new RadioGroupItem(); radioGroupItem.setTitle(i18n.selectPredefinedEventForSubscription()); radioGroupItem.addChangedHandler(createSelectionChangedHandler()); radioGroupItem.setValueMap(createSelectionValueMap()); radioGroupItem.setDefaultValue(controller.getDefaultTemplate().name()); return radioGroupItem; }