de.beamertool.admin.configuration.editor
Class EnumEditor<T extends Enum<T>>

java.lang.Object
  extended by com.l2fprod.common.beans.editor.AbstractPropertyEditor
      extended by com.l2fprod.common.beans.editor.ComboBoxPropertyEditor
          extended by de.beamertool.admin.configuration.editor.EnumEditor<T>
All Implemented Interfaces:
PropertyEditor
Direct Known Subclasses:
MessageOrientationEditor, MessagePresentationEditor, MobileTypeEditor

public abstract class EnumEditor<T extends Enum<T>>
extends com.l2fprod.common.beans.editor.ComboBoxPropertyEditor

Simple Editor to allow enumeration comboboxes.
The given enumartion is only copied at constrution time and is never updated afterwards.

Author:
ocm-zeeman

Nested Class Summary
 
Nested classes/interfaces inherited from class com.l2fprod.common.beans.editor.ComboBoxPropertyEditor
com.l2fprod.common.beans.editor.ComboBoxPropertyEditor.Renderer, com.l2fprod.common.beans.editor.ComboBoxPropertyEditor.Value
 
Constructor Summary
EnumEditor(T... values)
          Simple constructor.
 
Method Summary
 
Methods inherited from class com.l2fprod.common.beans.editor.ComboBoxPropertyEditor
getValue, setAvailableIcons, setAvailableValues, setValue
 
Methods inherited from class com.l2fprod.common.beans.editor.AbstractPropertyEditor
addPropertyChangeListener, getAsText, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, supportsCustomEditor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumEditor

public EnumEditor(T... values)
Simple constructor.
Initalizes the combobox with the given enumeration. This list is never updated afterwards!

Parameters:
values - Values to show in list