cst.loggingTool.presentationLayer.reports
Class ReportFieldListItem

java.lang.Object
  extended by cst.loggingTool.presentationLayer.reports.ReportFieldListItem

public class ReportFieldListItem
extends java.lang.Object

Represents a selected activity step that is used by the ReportFieldListItem. Each item includes a report field name and a colour used to produce bar graphs.


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License. 
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
ReportFieldListItem(DateFieldModel dateFieldModel)
           
 
Method Summary
 java.awt.Color getColour()
           
 DateFieldModel getDateFieldModel()
           
 javax.swing.Icon getIcon()
           
 int getListOrder()
           
 java.lang.String getReportFieldName()
           
 void setColor(java.awt.Color colour)
           
 void setListOrder(int listOrder)
           
 void updateIcon()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportFieldListItem

public ReportFieldListItem(DateFieldModel dateFieldModel)
Method Detail

getIcon

public javax.swing.Icon getIcon()
Returns:
the color

updateIcon

public void updateIcon()
Parameters:
color - the color to set

getReportFieldName

public java.lang.String getReportFieldName()
Returns:
the displayName

getDateFieldModel

public DateFieldModel getDateFieldModel()

getListOrder

public int getListOrder()

setListOrder

public void setListOrder(int listOrder)

getColour

public java.awt.Color getColour()

setColor

public void setColor(java.awt.Color colour)