org.hackystat.projectbrowser.page.sensordata
Class SdtColumn

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn
      extended by org.hackystat.projectbrowser.page.sensordata.SdtColumn
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator, org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn, org.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable

public class SdtColumn
extends org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn

Implements a column holding SDT summary information in the SensorDataDetailsPanel.

Author:
Philip Johnson
See Also:
Serialized Form

Constructor Summary
SdtColumn(org.apache.wicket.model.IModel model, java.lang.String sdtName)
          Constructs the SensorDataType column.
 
Method Summary
 void populateItem(org.apache.wicket.markup.repeater.Item cellItem, java.lang.String componentId, org.apache.wicket.model.IModel model)
          How to populate an individual cell.
 
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn
detach, getCssClass, getDisplayModel, getHeader, getSortProperty, isSortable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SdtColumn

public SdtColumn(org.apache.wicket.model.IModel model,
                 java.lang.String sdtName)
Constructs the SensorDataType column.

Parameters:
model - The model containintg SDT info.
sdtName - The name of the SDT to be displayed in this column.
Method Detail

populateItem

public void populateItem(org.apache.wicket.markup.repeater.Item cellItem,
                         java.lang.String componentId,
                         org.apache.wicket.model.IModel model)
How to populate an individual cell.

Parameters:
cellItem - the Item instance that will be displayed in the cell.
componentId - Use this to assign to the component added to the cell.
model - the model used to figure out what to display in the cell.