Package com.vaadin.v7.data.util
Class GeneratedPropertyContainer.GeneratedProperty<T>
- java.lang.Object
-
- com.vaadin.v7.data.util.GeneratedPropertyContainer.GeneratedProperty<T>
-
- All Implemented Interfaces:
Property<T>,Serializable
- Enclosing class:
- GeneratedPropertyContainer
@Deprecated protected static class GeneratedPropertyContainer.GeneratedProperty<T> extends Object implements Property<T>
Deprecated.Property implementation for generated properties.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Property
Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeEvent, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer
-
-
Constructor Summary
Constructors Constructor Description GeneratedProperty(Item item, Object propertyId, Object itemId, PropertyValueGenerator<T> generator)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Class<? extends T>getType()Deprecated.Returns the type of the Property.TgetValue()Deprecated.Gets the value stored in the Property.booleanisReadOnly()Deprecated.Tests if the Property is in read-only mode.voidsetReadOnly(boolean newStatus)Deprecated.Sets the Property's read-only mode to the specified status.voidsetValue(T newValue)Deprecated.Sets the value of the Property.
-
-
-
Constructor Detail
-
GeneratedProperty
public GeneratedProperty(Item item, Object propertyId, Object itemId, PropertyValueGenerator<T> generator)
Deprecated.
-
-
Method Detail
-
getValue
public T getValue()
Deprecated.Description copied from interface:PropertyGets the value stored in the Property. The returned object is compatible with the class returned by getType().
-
setValue
public void setValue(T newValue) throws Property.ReadOnlyException
Deprecated.Description copied from interface:PropertySets the value of the Property.Implementing this functionality is optional. If the functionality is missing, one should declare the Property to be in read-only mode and throw
Note : Since Vaadin 7.0, setting the value of a non-String property as a String is no longer supported.Property.ReadOnlyExceptionin this function.- Specified by:
setValuein interfaceProperty<T>- Parameters:
newValue- New value of the Property. This should be assignable to the type returned by getType- Throws:
Property.ReadOnlyException- if the object is in read-only mode
-
getType
public Class<? extends T> getType()
Deprecated.Description copied from interface:PropertyReturns the type of the Property. The methodsgetValueandsetValuemust be compatible with this type: one must be able to safely cast the value returned fromgetValueto the given type and pass any variable assignable to this type as an argument tosetValue.
-
isReadOnly
public boolean isReadOnly()
Deprecated.Description copied from interface:PropertyTests if the Property is in read-only mode. In read-only mode calls to the methodsetValuewill throwReadOnlyExceptionand will not modify the value of the Property.- Specified by:
isReadOnlyin interfaceProperty<T>- Returns:
trueif the Property is in read-only mode,falseif it's not
-
setReadOnly
public void setReadOnly(boolean newStatus)
Deprecated.Description copied from interface:PropertySets the Property's read-only mode to the specified status. This functionality is optional, but all properties must implement theisReadOnlymode query correctly.- Specified by:
setReadOnlyin interfaceProperty<T>- Parameters:
newStatus- new read-only status of the Property
-
-