bibliothek.extension.gui.dock.preference
Interface PreferenceOperationView


public interface PreferenceOperationView

A view of a PreferenceOperation tailored to use the properties that are related to a PreferenceModel.

Author:
Benjamin Sigg

Method Summary
 void addListener(PreferenceOperationViewListener listener)
          Adds a listener to this view, the listener is to be informed about changes on this view.
 void destroy()
          Informs this view that it is no longer required and can safely free resources.
 java.lang.String getDescription()
          Gets the description of this view.
 javax.swing.Icon getIcon()
          Gets the current icon of this view.
 PreferenceOperation getOperation()
          Gets the operation which is represented by this view.
 void removeListener(PreferenceOperationViewListener listener)
          Removes the listener listener from this view.
 

Method Detail

getOperation

PreferenceOperation getOperation()
Gets the operation which is represented by this view.

Returns:
the operation, not null

getIcon

javax.swing.Icon getIcon()
Gets the current icon of this view.

Returns:
the icon

getDescription

java.lang.String getDescription()
Gets the description of this view.

Returns:
the description

addListener

void addListener(PreferenceOperationViewListener listener)
Adds a listener to this view, the listener is to be informed about changes on this view.

Parameters:
listener - the new listener

removeListener

void removeListener(PreferenceOperationViewListener listener)
Removes the listener listener from this view.

Parameters:
listener - the listener to remove

destroy

void destroy()
Informs this view that it is no longer required and can safely free resources.