public RadioGroupItem(String name, String title) { setName(name); setTitle(title); setAttribute("editorType", "RadioGroupItem"); }
private RadioGroupItem createPredefinedEventSelectionItem() { RadioGroupItem radioGroupItem = new RadioGroupItem(); radioGroupItem.setTitle(i18n.selectPredefinedEventForSubscription()); radioGroupItem.addChangedHandler(createSelectionChangedHandler()); radioGroupItem.setValueMap(createSelectionValueMap()); radioGroupItem.setDefaultValue(controller.getDefaultTemplate().name()); return radioGroupItem; }
public ChooseTypeStep(Wizard parent) { super(NewLayerModelWizardWindow.STEP_CHOOSE_TYPE, MESSAGES.chooseTypeStepNumbering() + " " + MESSAGES.chooseTypeStepTitle(), false, parent); setWindowTitle(MESSAGES.chooseTypeStepTitle()); form = new DynamicForm(); form.setWidth100(); form.setColWidths("150", "*"); radioGroup = new RadioGroupItem(); radioGroup.setTitle(MESSAGES.chooseTypeStepRadioGroupTitle()); LinkedHashMap<String, String> typeMap = new LinkedHashMap<String, String>(); typeMap.put(TYPE_WFS, MESSAGES.chooseTypeStepWFS()); typeMap.put(TYPE_SHAPE, MESSAGES.chooseTypeStepShapeFile()); typeMap.put(TYPE_WMS, MESSAGES.chooseTypeStepWMS()); //typeMap.put(TYPE_DB, MESSAGES.chooseTypeStepDatabase()); //TODO support database+subtypes: radioGroup.setValueMap(typeMap); radioGroup.setDefaultValue(TYPE_WFS); radioGroup.setRequired(true); // ------------------------------------------------- form.setFields(radioGroup); form.addItemChangedHandler(new ItemChangedHandler() { public void onItemChanged(ItemChangedEvent event) { fireChangedEvent(); } }); addMember(form); }
orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); LinkedHashMap<String, String> orientations = new LinkedHashMap<String, String>(); orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); downloadTypeGroup.setTitle(MESSAGES.printPrefsDownloadType()); LinkedHashMap<String, String> types = new LinkedHashMap<String, String>(); types.put(SAVE, MESSAGES.printPrefsSaveAsFile());
orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); LinkedHashMap<String, String> orientations = new LinkedHashMap<String, String>(); orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); downloadTypeGroup.setTitle(MESSAGES.printPrefsDownloadType()); LinkedHashMap<String, String> types = new LinkedHashMap<String, String>(); types.put(SAVE, MESSAGES.printPrefsSaveAsFile());
this.scale.setTitle(i18n.scale()); this.scale.setValueMap(i18n.zeroScale(), i18n.autoScale());
operatorForm.setAlign(Alignment.LEFT); type = new RadioGroupItem(); type.setTitle(messages.combinedSearchWidgetType()); type.setValueMap(messages.combinedSearchWidgetOr(), messages.combinedSearchWidgetAnd()); type.setValue(messages.combinedSearchWidgetAnd());
propType.setTitle("Propery type"); propType.setValueMap("String", "Boolean", "Date", "Decimal", "Double", "Long", "Name", "Path", "Reference"); propType.setValueMap(PropertyDataTypes.STRING.getTypeName(),