/** * Creates a new PropertyEditorChangeEvent * @param property the property changed * @param newValue the new value of the field */ public PropertyEditorChangeEvent(PropertyEditorFieldInfo property, String newValue) { this.idEvent = property.getEventId(); this.property = property; this.newValue = newValue; }
/** * Creates a new PropertyEditorChangeEvent * @param property the property changed * @param newValue the new value of the field */ public PropertyEditorChangeEvent(PropertyEditorFieldInfo property, String newValue) { this.idEvent = property.getEventId(); this.property = property; this.newValue = newValue; }
public void observeEditComponentEventFromPropertyEditor(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(EditTargetDiv.PROPERTY_EDITOR_KEY)) { configContext.setComponentProperty(ID_PARAMETER, property.getCurrentStringValue()); } } }
public void observeEditComponentEventFromPropertyEditor(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(EditTargetDiv.PROPERTY_EDITOR_KEY)) { configContext.setComponentProperty(ID_PARAMETER, property.getCurrentStringValue()); } } }
public void observeEditComponentEventFromPropertyEditor(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(EditScreen.PROPERTY_EDITOR_KEY)) { configContext.setComponentProperty(property.getLabel(), property.getCurrentStringValue()); } }
public void observeEditComponentEventFromPropertyEditor(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(EditScreen.PROPERTY_EDITOR_KEY)) { configContext.setComponentProperty(property.getLabel(), property.getCurrentStringValue()); } }
/** * Capture & process the modification events sent by the property editor */ protected void onPropertyEditorChange(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(PROPERTY_EDITOR_ID)) { String attrKey = property.getKey(); String attrValue = event.getNewValue(); presenter.onPropertyChanged(attrKey, attrValue); } } }
/** * Capture & process the modification events sent by the property editor */ protected void onPropertyEditorChange(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(PROPERTY_EDITOR_ID)) { String attrKey = property.getKey(); String attrValue = event.getNewValue(); presenter.onAttributeChanged(attrKey, attrValue); } } }
/** * Capture & process the modification events sent by the property editor */ protected void onPropertyEditorChange(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(PROPERTY_EDITOR_ID)) { String attrKey = property.getKey(); String attrValue = event.getNewValue(); presenter.onPropertyChanged(attrKey, attrValue); } } }
/** * Capture & process the modification events sent by the property editor */ protected void onPropertyEditorChange(@Observes PropertyEditorChangeEvent event) { PropertyEditorFieldInfo property = event.getProperty(); if (property.getEventId().equalsIgnoreCase(PROPERTY_EDITOR_ID)) { String attrKey = property.getKey(); String attrValue = event.getNewValue(); presenter.onAttributeChanged(attrKey, attrValue); } } }
private void firePropertyChangedEvent(final String eventId) { final PropertyEditorFieldInfo propertyInfo = mock(PropertyEditorFieldInfo.class); doReturn(eventId).when(propertyInfo).getEventId(); doReturn("property").when(propertyInfo).getKey(); formPresenter.propertyChanged(new PropertyEditorChangeEvent(propertyInfo, "newValue")); }
private void firePropertyChangedEvent(final String eventId) { final PropertyEditorFieldInfo propertyInfo = mock(PropertyEditorFieldInfo.class); doReturn(eventId).when(propertyInfo).getEventId(); doReturn("property").when(propertyInfo).getKey(); formPresenter.propertyChanged(new PropertyEditorChangeEvent(propertyInfo, "newValue")); }
public void propertyChanged(@Observes PropertyEditorChangeEvent event) { if (event.getProperty().getEventId().equals(id)) { final String propertyName = event.getProperty().getKey(); final PropertyFormType propertyType = preference.getPropertyType(propertyName); Object newValue = propertyType.fromString(event.getNewValue()); Object currentValue = preference.get(propertyName); if (currentValue instanceof Enum) { newValue = getEnumValue(event, currentValue); } preference.set(propertyName, newValue); } }
public void propertyChanged(@Observes PropertyEditorChangeEvent event) { if (event.getProperty().getEventId().equals(id)) { final String propertyName = event.getProperty().getKey(); final PropertyFormType propertyType = preference.getPropertyType(propertyName); Object newValue = propertyType.fromString(event.getNewValue()); Object currentValue = preference.get(propertyName); if (currentValue instanceof Enum) { newValue = getEnumValue(event, currentValue); } preference.set(propertyName, newValue); } }