V - the type of the propertypublic abstract class ReadOnlyProperty<V> extends Object implements Property<V>, Property.ValueChangeNotifier, Property.ReadOnlyStatusChangeNotifier
Propertys with read-only values.
Provides a somewhat more space-efficient implementation than Vaadin's AbstractProperty,
which is useful when there are many instances in memory.Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer| Constructor and Description |
|---|
ReadOnlyProperty() |
public void setValue(V value)
The implementation in ReadOnlyProperty always throws Property.ReadOnlyException.
public boolean isReadOnly()
The implementation in ReadOnlyProperty always returns true.
isReadOnly in interface Property<V>public void setReadOnly(boolean readOnly)
The implementation in ReadOnlyProperty throws UnsupportedOperationException
if readOnly is false.
setReadOnly in interface Property<V>protected void fireValueChange()
Property.ValueChangeEvent to all registered
Property.ValueChangeListeners.protected void firstListenerAdded()
Property.ValueChangeListener has been added.
The implementation in ReadOnlyProperty does nothing.
protected void lastListenerRemoved()
Property.ValueChangeListener has been removed.
The implementation in ReadOnlyProperty does nothing.
public void addValueChangeListener(Property.ValueChangeListener listener)
addValueChangeListener in interface Property.ValueChangeNotifierpublic void removeValueChangeListener(Property.ValueChangeListener listener)
removeValueChangeListener in interface Property.ValueChangeNotifierpublic void addListener(Property.ValueChangeListener listener)
addListener in interface Property.ValueChangeNotifierpublic void removeListener(Property.ValueChangeListener listener)
removeListener in interface Property.ValueChangeNotifierpublic void addReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener)
addReadOnlyStatusChangeListener in interface Property.ReadOnlyStatusChangeNotifierpublic void removeReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener)
removeReadOnlyStatusChangeListener in interface Property.ReadOnlyStatusChangeNotifierpublic void addListener(Property.ReadOnlyStatusChangeListener listener)
addListener in interface Property.ReadOnlyStatusChangeNotifierpublic void removeListener(Property.ReadOnlyStatusChangeListener listener)
removeListener in interface Property.ReadOnlyStatusChangeNotifierCopyright © 2017. All rights reserved.