com.vaadin.data
Interface Property.ReadOnlyStatusChangeNotifier

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractField, AbstractProperty, AbstractSelect, AbstractTextField, CheckBox, ComboBox, CustomField, DateField, Form, InlineDateField, ListSelect, MethodProperty, NativeSelect, NestedMethodProperty, ObjectProperty, OptionGroup, PasswordField, PopupDateField, ProgressBar, ProgressIndicator, PropertyFormatter, RichTextArea, Select, Slider, Table, TextArea, TextField, TextFileProperty, TransactionalPropertyWrapper, Tree, TreeTable, TwinColSelect
Enclosing interface:
Property<T>

public static interface Property.ReadOnlyStatusChangeNotifier
extends java.io.Serializable

The interface for adding and removing ReadOnlyStatusChangeEvent listeners. If a Property wishes to allow other objects to receive ReadOnlyStatusChangeEvent generated by it, it must implement this interface.

Note : The general Java convention is not to explicitly declare that a class generates events, but to directly define the addListener and removeListener methods. That way the caller of these methods has no real way of finding out if the class really will send the events, or if it just defines the methods to be able to implement an interface.

Since:
3.0
Author:
Vaadin Ltd.

Method Summary
 void addListener(Property.ReadOnlyStatusChangeListener listener)
          Deprecated. As of 7.0, replaced by #addReadOnlyStatusChangeListener(ReadOnlyStatusChangeListener)
 void addReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener)
          Registers a new read-only status change listener for this Property.
 void removeListener(Property.ReadOnlyStatusChangeListener listener)
          Deprecated. As of 7.0, replaced by #removeReadOnlyStatusChangeListener(ReadOnlyStatusChangeListener)
 void removeReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener)
          Removes a previously registered read-only status change listener.
 

Method Detail

addReadOnlyStatusChangeListener

void addReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener)
Registers a new read-only status change listener for this Property.

Parameters:
listener - the new Listener to be registered

addListener

@Deprecated
void addListener(Property.ReadOnlyStatusChangeListener listener)
Deprecated. As of 7.0, replaced by #addReadOnlyStatusChangeListener(ReadOnlyStatusChangeListener)


removeReadOnlyStatusChangeListener

void removeReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener)
Removes a previously registered read-only status change listener.

Parameters:
listener - listener to be removed

removeListener

@Deprecated
void removeListener(Property.ReadOnlyStatusChangeListener listener)
Deprecated. As of 7.0, replaced by #removeReadOnlyStatusChangeListener(ReadOnlyStatusChangeListener)



Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.