public void updateStationFilters(final SOSMetadata currentMetadata) { hideInfoWindow(); Map<String, String> sortedCategories = getAlphabeticallySortedMap(); for (Station station : currentMetadata.getStations()) { Set<String> categories = getStationCategories(station); for (String category : categories) { sortedCategories.put(category, category); } } String serviceUrl = currentMetadata.getId(); RadioGroupItem selector = stationFilterGroups.get(serviceUrl); LinkedHashMap<String, String> categories = new LinkedHashMap<String, String>(sortedCategories); selector.setValueMap(categories); }
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); }
orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); orientations.put(PORTRAIT, MESSAGES.printPrefsPortrait()); orientationGroup.setValueMap(orientations); orientationGroup.setVertical(false); orientationGroup.setValue(LANDSCAPE); types.put(SAVE, MESSAGES.printPrefsSaveAsFile()); types.put(OPEN, MESSAGES.printPrefsOpenInBrowserWindow()); downloadTypeGroup.setValueMap(types); downloadTypeGroup.setVertical(false); downloadTypeGroup.setValue(SAVE);
orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); orientations.put(PORTRAIT, MESSAGES.printPrefsPortrait()); orientationGroup.setValueMap(orientations); orientationGroup.setVertical(false); orientationGroup.setValue(LANDSCAPE); types.put(SAVE, MESSAGES.printPrefsSaveAsFile()); types.put(OPEN, MESSAGES.printPrefsOpenInBrowserWindow()); downloadTypeGroup.setValueMap(types); downloadTypeGroup.setVertical(false); downloadTypeGroup.setValue(SAVE);
this.scale.setValueMap(i18n.zeroScale(), i18n.autoScale());
this.publishRadioGroup.setValueMap(i18n.yes(), i18n.no()); this.publishRadioGroup.setDefaultValue(i18n.yes()); this.enterConditionIsSameExitConditionRadioGroup.setValueMap(i18n.yes(), i18n.no()); this.enterConditionIsSameExitConditionRadioGroup.setDefaultValue(i18n.yes()); this.enterConditionIsSameExitConditionRadioGroup.addChangedHandler(new ChangedHandler() {
this.publishRadioGroup.setValueMap(i18n.yes(), i18n.no()); this.publishRadioGroup.setDefaultValue(i18n.yes()); this.filterRadioGroup.setValueMap(i18n.filterOwn(), i18n.filterOther(), i18n.filterBoth()); this.filterRadioGroup.setDefaultValue(i18n.filterOwn()); this.filterRadioGroup.setVertical(false);
type = new RadioGroupItem(); type.setTitle(messages.combinedSearchWidgetType()); type.setValueMap(messages.combinedSearchWidgetOr(), messages.combinedSearchWidgetAnd()); type.setValue(messages.combinedSearchWidgetAnd()); type.setVertical(false);
propType.setValueMap("String", "Boolean", "Date", "Decimal", "Double", "Long", "Name", "Path", "Reference"); propType.setValueMap(PropertyDataTypes.STRING.getTypeName(), PropertyDataTypes.DATE.getTypeName(), PropertyDataTypes.DECIMAL.getTypeName(),
logicalOperatorRadio.setValueMap(I18nProvider.getSearch().radioOperatorOr(), I18nProvider.getSearch() .radioOperatorAnd()); logicalOperatorRadio.setVertical(false);