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

java.lang.Object
  extended by de.matthiasmann.twl.model.HasCallback
      extended by de.matthiasmann.twl.model.AbstractEnumModel<T>
          extended by de.matthiasmann.twl.model.SimpleEnumModel<T>
Type Parameters:
T - the enum class
All Implemented Interfaces:
EnumModel<T>, WithRunnableCallback

public class SimpleEnumModel<T extends java.lang.Enum<T>>
extends AbstractEnumModel<T>

A simple enum model


Constructor Summary
SimpleEnumModel(java.lang.Class<T> clazz, T value)
           
 
Method Summary
 T getValue()
           
 void setValue(T value)
           
 
Methods inherited from class de.matthiasmann.twl.model.AbstractEnumModel
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.utils.WithRunnableCallback
addCallback, removeCallback
 

Constructor Detail

SimpleEnumModel

public SimpleEnumModel(java.lang.Class<T> clazz,
                       T value)
Method Detail

getValue

public T getValue()

setValue

public void setValue(T value)