|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.sensordata.SensorDataDetailsProvider
public class SensorDataDetailsProvider
Provides an IDataProvider for the SensorDataDetails panel. The goal of this implementation is to support a pageable list view of the selected sensor data, where each page is retrieved from the SensorBase when it is actually requested by the user.
Constructor Summary | |
---|---|
SensorDataDetailsProvider()
Creates an empty SensorDataDetailsProvider. |
Method Summary | |
---|---|
void |
detach()
Hook for detachable models, but we're not doing that yet. |
boolean |
isEmpty()
Returns true if this model does not contain any data. |
java.util.Iterator |
iterator(int first,
int count)
Provides an iterator over the specified subset of SensorData. |
org.apache.wicket.model.IModel |
model(java.lang.Object data)
Callback used by the consumer of this data provider to wrap SensorDataDetails instances retrieved from iterator(int, int) with a model (usually a detachable one). |
void |
setSensorDataDetailsProvider(java.lang.String sdtName,
java.lang.String tool,
long start)
Used by the SdtSummary link to indicate how the model should be updated. |
int |
size()
The total number of items in this provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SensorDataDetailsProvider()
Method Detail |
---|
public void setSensorDataDetailsProvider(java.lang.String sdtName, java.lang.String tool, long start)
sdtName
- The sdtName.tool
- The tool.start
- The start time.public java.util.Iterator iterator(int first, int count)
iterator
in interface org.apache.wicket.markup.repeater.data.IDataProvider
first
- The first row to display.count
- The minimum number of rows that the iterator will work on.
public org.apache.wicket.model.IModel model(java.lang.Object data)
model
in interface org.apache.wicket.markup.repeater.data.IDataProvider
data
- The SensorDataDetails instance returned from the iterator that needs to be wrapped.
public int size()
size
in interface org.apache.wicket.markup.repeater.data.IDataProvider
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |