bibliothek.gui.dock.common.theme
Interface ThemeMapListener


public interface ThemeMapListener

A listener to a ThemeMap, gets informed about changes of the map.

Author:
Benjamin Sigg

Method Summary
 void changed(ThemeMap map, int index, String key, ThemeFactory oldFactory, ThemeFactory newFactory)
          Called when an entry was changed (includes adding or removing).
 void selectionChanged(ThemeMap map, String oldKey, String newKey)
          Called when the selected factory has been changed.
 

Method Detail

changed

void changed(ThemeMap map,
             int index,
             String key,
             ThemeFactory oldFactory,
             ThemeFactory newFactory)
Called when an entry was changed (includes adding or removing).

Parameters:
map - the source of the event
index - the location of the changed entry
key - the key of the changed entry
oldFactory - the old value of the entry, null if the entry was added
newFactory - the new value of the entry, null if the entry was removed

selectionChanged

void selectionChanged(ThemeMap map,
                      String oldKey,
                      String newKey)
Called when the selected factory has been changed.

Parameters:
map - the source of the event
oldKey - the name of the old factory, can be null
newKey - the name of the new factory, can be null