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); } }
/** * Set a new value for the logical operator. This operator determines * whether all the criteria have to be met in the search, or just one of * them. * * @param operator operator */ public void setLogicalOperator(LogicalOperator operator) { switch (operator) { case AND: logicalOperatorRadio.setValue(I18nProvider.getSearch().radioOperatorAnd()); break; case OR: logicalOperatorRadio.setValue(I18nProvider.getSearch().radioOperatorOr()); break; default: throw new IllegalStateException("Unhandled operator value " + operator); } }
type.setTitle(messages.combinedSearchWidgetType()); type.setValueMap(messages.combinedSearchWidgetOr(), messages.combinedSearchWidgetAnd()); type.setValue(messages.combinedSearchWidgetAnd()); type.setVertical(false); operatorForm.setFields(type);
@Override public void initialize(Criterion featureSearch) { List<Criterion> critters; if (featureSearch instanceof AndCriterion) { critters = ((AndCriterion) featureSearch).getCriteria(); type.setValue(messages.combinedSearchWidgetAnd()); } else if (featureSearch instanceof OrCriterion) { critters = ((OrCriterion) featureSearch).getCriteria(); type.setValue(messages.combinedSearchWidgetOr()); } else { return; } // not supported if (critters != null && critters.size() > 0) { for (Criterion cr : critters) { searchItems.addData(new SearchListRecord(SearchWidgetRegistry.getI18nTypeName(cr), cr)); updateDisplay(); } } }
/** * Clear fields */ public void clearFields() { this.editCR = false; this.cancelButton.setVisible(false); this.oldRuleName = ""; clearBlock(); // change button text this.createButtonItem.setTitle(i18n.create()); // clear title this.nameItem.clearValue(); // clear description this.descriptionItem.clearValue(); // set radio buttons to "yes" this.publishRadioGroup.setValue(i18n.yes()); this.filterRadioGroup.setValue(i18n.filterOwn()); // resetBlock(); }
@Override public void onSwitch(SwitchAutoscaleEvent evt) { LegendEntryTimeSeries.this.getTimeSeries().setAutoScale(evt.getSwitch()); LegendEntryTimeSeries.this.scale.setValue(i18n.autoScale()); LegendEntryTimeSeries.this.getTimeSeries().setScaleToZero(false); } }
public void onUpdateScale(UpdateScaleEvent evt) { if (LegendEntryTimeSeries.this.getTimeSeries().getPhenomenonId() .equals(evt.getPhenomenonID())) { if (evt.isAutoScale()) { LegendEntryTimeSeries.this.getTimeSeries().setAutoScale( evt.isAutoScale()); LegendEntryTimeSeries.this.scale.setValue(i18n .autoScale()); } if (evt.isScaleToNull()) { LegendEntryTimeSeries.this.getTimeSeries().setScaleToZero( evt.isScaleToNull()); LegendEntryTimeSeries.this.scale.setValue(i18n .zeroScale()); } } }
propMultiValue.setValue(property.isMultiValue()); propName.setValue(property.getName()); propType.setValue(PropertyDataTypes.getTypeByTypeNum(property.getType()).getTypeName()); PropertyDataTypes type = PropertyDataTypes.getTypeByTypeNum(property.getType()); if (!property.isMultiValue()) {
enterConditionIsSameExitConditionRadioGroup.setValue("yes");