Interface
caplin.presenter.property

PropertyListener

Interface implemented by classes that wish to listen to property change events.

Constructor Summary

Attributes Name and Description
caplin.presenter.property.PropertyListener()

Method Summary

Attributes Name and Description
void onPropertyChanged()

Callback method invoked when the value of a caplin.presenter.property.Property changes.

void onPropertyUpdated()

Callback method invoked when the value of a caplin.presenter.property.Property is updated, even when it hasn't changed.

void onValidationComplete()

Callback method invoked once validation is complete.

void onValidationError(Object vPropertyValue, String sErrorMessage)

Callback method invoked when an attempt to update an caplin.presenter.property.EditableProperty results in a validation error.

void onValidationSuccess()

Callback method invoked when an attempt to update an caplin.presenter.property.EditableProperty does not result in a validation error.

Constructor Detail

caplin.presenter.property.PropertyListener()

Method Detail

void onPropertyChanged()

Callback method invoked when the value of a caplin.presenter.property.Property changes.

Implementation of this method is optional, and no action will be taken if the method is invoked but has not been overridden.

void onPropertyUpdated()

Callback method invoked when the value of a caplin.presenter.property.Property is updated, even when it hasn't changed.

This event is there to accommodate cases where we want to know about calls to set the value of a property even if the new value being set is the same as the old one.

Implementation of this method is optional, and no action will be taken if the method is invoked but has not been overridden.

void onValidationComplete()

Callback method invoked once validation is complete.

Implementation of this method is optional, and no action will be taken if the method is invoked but has not been overridden.

void onValidationError(Object vPropertyValue, String sErrorMessage)

Callback method invoked when an attempt to update an caplin.presenter.property.EditableProperty results in a validation error.

Implementation of this method is optional, and no action will be taken if the method is invoked but has not been overridden.

Parameters
Object vPropertyValue The value that led to the validation error.
String sErrorMessage The description of the validation error.

void onValidationSuccess()

Callback method invoked when an attempt to update an caplin.presenter.property.EditableProperty does not result in a validation error.

Implementation of this method is optional, and no action will be taken if the method is invoked but has not been overridden.