org.apache.droids.wicket.component
Class WorkBeanDataProvider<T extends Task>

java.lang.Object
  extended by org.apache.droids.wicket.component.CollectionDataProvider<WorkBean<T>>
      extended by org.apache.droids.wicket.component.WorkBeanDataProvider<T>
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator, org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<WorkBean<T>>, org.apache.wicket.IClusterable, org.apache.wicket.markup.repeater.data.IDataProvider<WorkBean<T>>, org.apache.wicket.model.IDetachable

public class WorkBeanDataProvider<T extends Task>
extends CollectionDataProvider<WorkBean<T>>

See Also:
Serialized Form

Constructor Summary
WorkBeanDataProvider(org.apache.wicket.model.IModel<SimpleWorkMonitor> monitor)
           
 
Method Summary
 void detach()
           
protected  java.util.List<WorkBean<T>> getValues()
           
 org.apache.wicket.model.IModel<WorkBean<T>> model(WorkBean<T> object)
           
 
Methods inherited from class org.apache.droids.wicket.component.CollectionDataProvider
getDefaultSortProperty, getSortState, iterator, setSortState, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkBeanDataProvider

public WorkBeanDataProvider(org.apache.wicket.model.IModel<SimpleWorkMonitor> monitor)
Method Detail

model

public org.apache.wicket.model.IModel<WorkBean<T>> model(WorkBean<T> object)
Specified by:
model in interface org.apache.wicket.markup.repeater.data.IDataProvider<WorkBean<T extends Task>>
Overrides:
model in class CollectionDataProvider<WorkBean<T extends Task>>

getValues

protected java.util.List<WorkBean<T>> getValues()
Overrides:
getValues in class CollectionDataProvider<WorkBean<T extends Task>>
Returns:
a thread safe copy of the values as a List

detach

public void detach()
Specified by:
detach in interface org.apache.wicket.model.IDetachable
Overrides:
detach in class CollectionDataProvider<WorkBean<T extends Task>>


Copyright © 2007-2009. All Rights Reserved.