|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.data.util.GeneratedPropertyContainer.GeneratedProperty<T>
protected static class GeneratedPropertyContainer.GeneratedProperty<T>
Property implementation for generated properties
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.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 | |
|---|---|
GeneratedPropertyContainer.GeneratedProperty(Item item,
java.lang.Object propertyId,
java.lang.Object itemId,
PropertyValueGenerator<T> generator)
|
|
| Method Summary | |
|---|---|
java.lang.Class<? extends T> |
getType()
Returns the type of the Property. |
T |
getValue()
Gets the value stored in the Property. |
boolean |
isReadOnly()
Tests if the Property is in read-only mode. |
void |
setReadOnly(boolean newStatus)
Sets the Property's read-only mode to the specified status. |
void |
setValue(T newValue)
Sets the value of the Property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneratedPropertyContainer.GeneratedProperty(Item item,
java.lang.Object propertyId,
java.lang.Object itemId,
PropertyValueGenerator<T> generator)
| Method Detail |
|---|
public T getValue()
Property
getValue in interface Property<T>
public void setValue(T newValue)
throws Property.ReadOnlyException
Property
Implementing this functionality is optional. If the functionality is
missing, one should declare the Property to be in read-only mode and
throw Property.ReadOnlyException in this function.
setValue in interface Property<T>newValue - New value of the Property. This should be assignable to the
type returned by getType
Property.ReadOnlyException - if the object is in read-only modepublic java.lang.Class<? extends T> getType()
PropertygetValue and
setValue must be compatible with this type: one must be able
to safely cast the value returned from getValue to the given
type and pass any variable assignable to this type as an argument to
setValue.
getType in interface Property<T>public boolean isReadOnly()
PropertysetValue will throw
ReadOnlyException and will not modify the value of the
Property.
isReadOnly in interface Property<T>true if the Property is in read-only mode,
false if it's notpublic void setReadOnly(boolean newStatus)
PropertyisReadOnly mode query correctly.
setReadOnly in interface Property<T>newStatus - new read-only status of the Property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||