bibliothek.extension.gui.dock.preference
Interface PreferenceModelListener


public interface PreferenceModelListener

A listener to a PreferenceModel, gets informed about changes in the model.

Author:
Benjamin Sigg

Method Summary
 void preferenceAdded(PreferenceModel model, int beginIndex, int endIndex)
          Called when new preferences have been added to model.
 void preferenceChanged(PreferenceModel model, int beginIndex, int endIndex)
          Called when some preferences have been changed.
 void preferenceRemoved(PreferenceModel model, int beginIndex, int endIndex)
          Called when some preferences have been removed from model.
 

Method Detail

preferenceAdded

void preferenceAdded(PreferenceModel model,
                     int beginIndex,
                     int endIndex)
Called when new preferences have been added to model.

Parameters:
model - the model that changed
beginIndex - the index of the first new preference
endIndex - the index of the last new preference

preferenceRemoved

void preferenceRemoved(PreferenceModel model,
                       int beginIndex,
                       int endIndex)
Called when some preferences have been removed from model.

Parameters:
model - the model that changed
beginIndex - the old index of the first preference that was removed
endIndex - the old index of the last preference that was removed

preferenceChanged

void preferenceChanged(PreferenceModel model,
                       int beginIndex,
                       int endIndex)
Called when some preferences have been changed. This includes the value of a preference, the text or description, but also the enabled PreferenceOperations.

Parameters:
model - the source of the event
beginIndex - the index of the first preference that changed
endIndex - the index of the last preference that changeds