de.matthiasmann.twl.model
Class AbstractEnumModel<T extends java.lang.Enum<T>>

java.lang.Object
  extended by de.matthiasmann.twl.model.HasCallback
      extended by de.matthiasmann.twl.model.AbstractEnumModel<T>
Type Parameters:
T - The enum type
All Implemented Interfaces:
EnumModel<T>, WithRunnableCallback
Direct Known Subclasses:
PersistentEnumModel, SimpleEnumModel

public abstract class AbstractEnumModel<T extends java.lang.Enum<T>>
extends HasCallback
implements EnumModel<T>

Abstract base class to simplify implementing EnumModels.


Constructor Summary
protected AbstractEnumModel(java.lang.Class<T> clazz)
           
 
Method Summary
 java.lang.Class<T> getEnumClass()
           
 
Methods inherited from class de.matthiasmann.twl.model.HasCallback
addCallback, doCallback, hasCallbacks, removeCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.matthiasmann.twl.model.EnumModel
getValue, setValue
 
Methods inherited from interface de.matthiasmann.twl.utils.WithRunnableCallback
addCallback, removeCallback
 

Constructor Detail

AbstractEnumModel

protected AbstractEnumModel(java.lang.Class<T> clazz)
Method Detail

getEnumClass

public java.lang.Class<T> getEnumClass()
Specified by:
getEnumClass in interface EnumModel<T extends java.lang.Enum<T>>