private RadioGroupItem createPredefinedEventSelectionItem() { RadioGroupItem radioGroupItem = new RadioGroupItem(); radioGroupItem.setTitle(i18n.selectPredefinedEventForSubscription()); radioGroupItem.addChangedHandler(createSelectionChangedHandler()); radioGroupItem.setValueMap(createSelectionValueMap()); radioGroupItem.setDefaultValue(controller.getDefaultTemplate().name()); return radioGroupItem; }
@Override public void onChanged(ChangedEvent event) { setFieldEnable((String)propType.getValue(), (Boolean)event.getValue()); } });
public void setSelectedFilter(String serviceURL, String filter) { RadioGroupItem selector = stationFilterGroups.get(serviceURL); if (selector == null) { // debug message .. should not happen anyway getToasterInstance().addErrorMessage("Missing expansion component for " + serviceURL); } else { selector.setValue(filter); } }
public RadioGroupItem(String name, String title) { setName(name); setTitle(title); setAttribute("editorType", "RadioGroupItem"); }
public RadioGroupItem(String name) { setName(name); setAttribute("editorType", "RadioGroupItem"); }
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; }
sizeItem.setValue(PageSize.A4.getName()); orientationGroup = new RadioGroupItem(); orientationGroup.setName(ORIENTATION); orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); LinkedHashMap<String, String> orientations = new LinkedHashMap<String, String>(); orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); orientations.put(PORTRAIT, MESSAGES.printPrefsPortrait()); orientationGroup.setValueMap(orientations); orientationGroup.setVertical(false); orientationGroup.setValue(LANDSCAPE); barIcon.setSrc(PrintingLayout.iconWaitBlank); downloadTypeGroup = new RadioGroupItem(); downloadTypeGroup.setName(DOWNLOAD_TYPE); downloadTypeGroup.setTitle(MESSAGES.printPrefsDownloadType()); LinkedHashMap<String, String> types = new LinkedHashMap<String, String>(); types.put(SAVE, MESSAGES.printPrefsSaveAsFile()); types.put(OPEN, MESSAGES.printPrefsOpenInBrowserWindow()); downloadTypeGroup.setValueMap(types); downloadTypeGroup.setVertical(false); downloadTypeGroup.setValue(SAVE);
propType = new RadioGroupItem(); propName.setRequired(true); propType.setVertical(false); propType.setTitle("Propery type"); propType.setValueMap("String", "Boolean", "Date", "Decimal", "Double", "Long", "Name", "Path", "Reference"); propType.setValueMap(PropertyDataTypes.STRING.getTypeName(), PropertyDataTypes.DATE.getTypeName(), PropertyDataTypes.DECIMAL.getTypeName(), PropertyDataTypes.REFERENCE.getTypeName(), PropertyDataTypes.WEAKREFERENCE.getTypeName()); propType.setDefaultValue(PropertyDataTypes.STRING.getTypeName()); propType.addChangedHandler(new ChangedHandler() { propName.focusInItem(); if (prop != null) setFieldsFromProperty(prop); setFieldEnable((String)propType.getValue(), (Boolean)propMultiValue.getValue()); return editPropertyWindow;
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); }
this.publishRadioGroup = new RadioGroupItem("publish", i18n.publish()); this.publishRadioGroup.setValueMap(i18n.yes(), i18n.no()); this.publishRadioGroup.setDefaultValue(i18n.yes()); this.filterRadioGroup = new RadioGroupItem("filter", i18n.rules()); this.filterRadioGroup.setValueMap(i18n.filterOwn(), i18n.filterOther(), i18n.filterBoth()); this.filterRadioGroup.setDefaultValue(i18n.filterOwn()); this.filterRadioGroup.setVertical(false); this.filterRadioGroup.setTitleOrientation(TitleOrientation.LEFT); this.filterRadioGroup.addChangedHandler(new ChangedHandler() { public void onChanged(final ChangedEvent event) { SC.ask(i18n.filterQuestion(), new BooleanCallback() {
layout.setWidth100(); logicalOperatorRadio = new RadioGroupItem("logicalOperator"); logicalOperatorRadio.setValueMap(I18nProvider.getSearch().radioOperatorOr(), I18nProvider.getSearch() .radioOperatorAnd()); logicalOperatorRadio.setVertical(false); logicalOperatorRadio.setRequired(true); logicalOperatorRadio.setAlign(Alignment.LEFT); logicalOperatorRadio.setWidth(250); logicalOperatorRadio.setShowTitle(false);
this.lineWidth.setValueMap("1","2","3","4","5","6","7","8","9","10"); this.scale = new RadioGroupItem(); this.scale.setTitle(i18n.scale()); this.scale.setValueMap(i18n.zeroScale(), i18n.autoScale());
public static RadioGroupItem getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; return new RadioGroupItem(jsObj); }
enterConditionIsSameExitConditionRadioGroup.setValue("yes"); enterConditionIsSameExitConditionRadioGroup.show(); entryConditionItemsForm.redraw(); } else if (selectedRuleType == OVER_UNDERSHOOT) { enterConditionIsSameExitConditionRadioGroup.show(); entryConditionItemsForm.redraw(); } else if (selectedRuleType == TENDENCY_OVER_TIME) { enterConditionIsSameExitConditionRadioGroup.show(); entryConditionItemsForm.redraw(); } else if (selectedRuleType == TENDENCY_OVER_COUNT) { enterConditionIsSameExitConditionRadioGroup.show(); entryConditionItemsForm.redraw(); }else if (selectedRuleType == SUM_OVER_TIME) { enterConditionIsSameExitConditionRadioGroup.hide(); entryConditionItemsForm.redraw(); }else if (selectedRuleType == SENSOR_LOSS) { enterConditionIsSameExitConditionRadioGroup.hide(); entryConditionItemsForm.redraw();
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); }
this.lineWidth.setValue(getTimeSeries().getLineWidth()); if (getTimeSeries().isAutoScale()) { this.scale.setDefaultValue(i18n.autoScale()); } else { this.scale.setDefaultValue(i18n.zeroScale());
sizeItem.setValue(PageSize.A4.getName()); orientationGroup = new RadioGroupItem(); orientationGroup.setName(ORIENTATION); orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); LinkedHashMap<String, String> orientations = new LinkedHashMap<String, String>(); orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); orientations.put(PORTRAIT, MESSAGES.printPrefsPortrait()); orientationGroup.setValueMap(orientations); orientationGroup.setVertical(false); orientationGroup.setValue(LANDSCAPE); barIcon.setSrc(PrintingLayout.iconWaitBlank); downloadTypeGroup = new RadioGroupItem(); downloadTypeGroup.setName(DOWNLOAD_TYPE); downloadTypeGroup.setTitle(MESSAGES.printPrefsDownloadType()); LinkedHashMap<String, String> types = new LinkedHashMap<String, String>(); types.put(SAVE, MESSAGES.printPrefsSaveAsFile()); types.put(OPEN, MESSAGES.printPrefsOpenInBrowserWindow()); downloadTypeGroup.setValueMap(types); downloadTypeGroup.setVertical(false); downloadTypeGroup.setValue(SAVE);
operatorForm.setWidth100(); operatorForm.setAlign(Alignment.LEFT); type = new RadioGroupItem(); type.setTitle(messages.combinedSearchWidgetType()); type.setValueMap(messages.combinedSearchWidgetOr(), messages.combinedSearchWidgetAnd()); type.setValue(messages.combinedSearchWidgetAnd()); type.setVertical(false); operatorForm.setFields(type); layout.addMember(operatorForm);
this.publishRadioGroup = new RadioGroupItem("publish", i18n.publish()); this.publishRadioGroup.setValueMap(i18n.yes(), i18n.no()); this.publishRadioGroup.setDefaultValue(i18n.yes()); this.enterConditionIsSameExitConditionRadioGroup = new RadioGroupItem("condition", i18n.enterExitCondition()); this.enterConditionIsSameExitConditionRadioGroup.setValueMap(i18n.yes(), i18n.no()); this.enterConditionIsSameExitConditionRadioGroup.setDefaultValue(i18n.yes()); this.enterConditionIsSameExitConditionRadioGroup.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { if (event.getValue().toString().equals(i18n.no())) {