net.sf.doolin.gui.model
Class EnumListDataFactory<E extends Enum<E>>

java.lang.Object
  extended by net.sf.doolin.gui.model.EnumListDataFactory<E>
Type Parameters:
E - Type of enumeration
All Implemented Interfaces:
DataFactory<ca.odell.glazedlists.EventList<E>>

public class EnumListDataFactory<E extends Enum<E>>
extends Object
implements DataFactory<ca.odell.glazedlists.EventList<E>>

Returns the value model for a list of enumeration values.

Author:
Damien Coraboeuf

Constructor Summary
EnumListDataFactory(Class<E> enumClass)
          Constructor
 
Method Summary
 ca.odell.glazedlists.EventList<E> create(Object context)
          Creates an arbitrary object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumListDataFactory

public EnumListDataFactory(Class<E> enumClass)
Constructor

Parameters:
enumClass - Enumeration class
Method Detail

create

public ca.odell.glazedlists.EventList<E> create(Object context)
Description copied from interface: DataFactory
Creates an arbitrary object.

Specified by:
create in interface DataFactory<ca.odell.glazedlists.EventList<E extends Enum<E>>>
Parameters:
context - Context of creation
Returns:
Created object.


Copyright © 2011. All Rights Reserved.