public static RadioGroupItem getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; return new RadioGroupItem(jsObj); }
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; }
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); }
sizeItem.setValue(PageSize.A4.getName()); orientationGroup = new RadioGroupItem(); orientationGroup.setName(ORIENTATION); orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); barIcon.setSrc(PrintingLayout.iconWaitBlank); downloadTypeGroup = new RadioGroupItem(); downloadTypeGroup.setName(DOWNLOAD_TYPE); downloadTypeGroup.setTitle(MESSAGES.printPrefsDownloadType());
sizeItem.setValue(PageSize.A4.getName()); orientationGroup = new RadioGroupItem(); orientationGroup.setName(ORIENTATION); orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); barIcon.setSrc(PrintingLayout.iconWaitBlank); downloadTypeGroup = new RadioGroupItem(); downloadTypeGroup.setName(DOWNLOAD_TYPE); downloadTypeGroup.setTitle(MESSAGES.printPrefsDownloadType());
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(),
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.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());
operatorForm.setWidth100(); operatorForm.setAlign(Alignment.LEFT); type = new RadioGroupItem(); type.setTitle(messages.combinedSearchWidgetType()); type.setValueMap(messages.combinedSearchWidgetOr(), messages.combinedSearchWidgetAnd());
layout.setWidth100(); logicalOperatorRadio = new RadioGroupItem("logicalOperator"); logicalOperatorRadio.setValueMap(I18nProvider.getSearch().radioOperatorOr(), I18nProvider.getSearch() .radioOperatorAnd());
propType = new RadioGroupItem();