de.matthiasmann.twl.model
Interface EnumModel<T extends java.lang.Enum<T>>

Type Parameters:
T - The enum type
All Superinterfaces:
WithRunnableCallback
All Known Implementing Classes:
AbstractEnumModel, PersistentEnumModel, SimpleEnumModel

public interface EnumModel<T extends java.lang.Enum<T>>
extends WithRunnableCallback

A generic model for enum values based on a generic enum type.


Method Summary
 java.lang.Class<T> getEnumClass()
           
 T getValue()
           
 void setValue(T value)
           
 
Methods inherited from interface de.matthiasmann.twl.utils.WithRunnableCallback
addCallback, removeCallback
 

Method Detail

getEnumClass

java.lang.Class<T> getEnumClass()

getValue

T getValue()

setValue

void setValue(T value)