info.magnolia.ui.framework.i18n
Class I18NAwarePropertyImpl<T>
java.lang.Object
com.vaadin.data.util.AbstractProperty<T>
info.magnolia.ui.framework.i18n.I18NAwarePropertyImpl<T>
- Type Parameters:
T
- property type.
- All Implemented Interfaces:
- com.vaadin.data.Property<T>, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.ValueChangeNotifier, info.magnolia.ui.api.i18n.I18NAwareProperty<T>, Serializable
public class I18NAwarePropertyImpl<T>
- extends com.vaadin.data.util.AbstractProperty<T>
- implements info.magnolia.ui.api.i18n.I18NAwareProperty<T>
Simple Property that manages one or more localized JCR properties internally. Depending on the Locale set
it delegates the value read/write to the corresponding JCR property.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class com.vaadin.data.util.AbstractProperty |
com.vaadin.data.util.AbstractProperty.ReadOnlyStatusChangeEvent |
Nested classes/interfaces inherited from interface com.vaadin.data.Property |
com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeEvent, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeEvent, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer |
Methods inherited from class com.vaadin.data.util.AbstractProperty |
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireReadOnlyStatusChange, fireValueChange, getListeners, isReadOnly, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValueChangeListener, setReadOnly, toString |
Methods inherited from interface com.vaadin.data.Property |
isReadOnly, setReadOnly |
I18NAwarePropertyImpl
public I18NAwarePropertyImpl(String baseName,
Class<T> type,
info.magnolia.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter parentNodeAdapter)
I18NAwarePropertyImpl
public I18NAwarePropertyImpl(String baseName,
Class<T> type,
info.magnolia.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter parentNodeAdapter,
T defaultValue)
setI18NPropertyName
public void setI18NPropertyName(String i18NPropertyName)
- Specified by:
setI18NPropertyName
in interface info.magnolia.ui.api.i18n.I18NAwareProperty<T>
getValue
public T getValue()
- Specified by:
getValue
in interface com.vaadin.data.Property<T>
setValue
public void setValue(T newValue)
throws com.vaadin.data.Property.ReadOnlyException
- Specified by:
setValue
in interface com.vaadin.data.Property<T>
- Throws:
com.vaadin.data.Property.ReadOnlyException
getType
public Class<? extends T> getType()
- Specified by:
getType
in interface com.vaadin.data.Property<T>
getLocalizedPropertyName
public String getLocalizedPropertyName()
- Specified by:
getLocalizedPropertyName
in interface info.magnolia.ui.api.i18n.I18NAwareProperty<T>
getOrCreateProperty
protected info.magnolia.ui.vaadin.integration.jcr.DefaultProperty<T> getOrCreateProperty()
getBasePropertyName
public String getBasePropertyName()
- Specified by:
getBasePropertyName
in interface info.magnolia.ui.api.i18n.I18NAwareProperty<T>
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocale
in interface info.magnolia.ui.api.i18n.I18NAwareProperty<T>
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interface info.magnolia.ui.api.i18n.I18NAwareProperty<T>
setDefaultValue
public void setDefaultValue(T defaultValue)
- Specified by:
setDefaultValue
in interface info.magnolia.ui.api.i18n.I18NAwareProperty<T>
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.