bibliothek.gui.dock.common.preference
Class ThemeChoice

java.lang.Object
  extended by bibliothek.extension.gui.dock.preference.preferences.choice.DefaultChoice<ThemeFactory>
      extended by bibliothek.gui.dock.common.preference.ThemeChoice
All Implemented Interfaces:
Choice

public class ThemeChoice
extends DefaultChoice<ThemeFactory>

A choice offering all the ThemeFactorys a ThemeMap provides.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.extension.gui.dock.preference.preferences.choice.DefaultChoice
DefaultChoice.Entry<V>
 
Constructor Summary
ThemeChoice(ThemeMap themes, DockController controller)
          Creates a new set of choices.
 
Method Summary
 void remove(int index)
          Removes the index'th entry of this choice.
 void setController(DockController controller)
          Informs this Choice that it is now used for displaying items for controller.
 
Methods inherited from class bibliothek.extension.gui.dock.preference.preferences.choice.DefaultChoice
add, add, addChoiceListener, addLinked, equals, fireInserted, fireRemoved, fireUpdated, getDefaultChoice, getEntry, getId, getText, getValue, identifierToValue, indexOfIdentifier, indexOfValue, isNullEntryAllowed, removeChoiceListener, setDefaultChoice, setNullEntryAllowed, size, valueToIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeChoice

public ThemeChoice(ThemeMap themes,
                   DockController controller)
Creates a new set of choices.

Parameters:
themes - the map to read
controller - the controller in whose realm this choice is required, can be null
Method Detail

setController

public void setController(DockController controller)
Description copied from interface: Choice
Informs this Choice that it is now used for displaying items for controller.

Specified by:
setController in interface Choice
Overrides:
setController in class DefaultChoice<ThemeFactory>
Parameters:
controller - the controller in whose realm this Choice is currently used, can be null

remove

public void remove(int index)
Description copied from class: DefaultChoice
Removes the index'th entry of this choice.

Overrides:
remove in class DefaultChoice<ThemeFactory>
Parameters:
index - the index of the entry to remove