cst.loggingTool.presentationLayer.reports
Class ReportFieldList

java.lang.Object
  extended by cst.loggingTool.presentationLayer.reports.ReportFieldList
All Implemented Interfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.awt.dnd.DropTargetListener, java.util.EventListener

public class ReportFieldList
extends java.lang.Object
implements java.awt.dnd.DragSourceListener, java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener

a drag and drop list of selected activity fields that should be printed. Users can drag and drop items within the list to change the order. They can also double clickon a list item to change the colour.


 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
ReportFieldList(SessionProperties sessionProperties)
           
 
Method Summary
 void addDateFieldModels(java.util.ArrayList<DateFieldModel> dateFieldModels)
           
 void addMouseListener(java.awt.event.MouseListener mouseListener)
           
 void dragDropEnd(java.awt.dnd.DragSourceDropEvent dragEvent)
           
 void dragEnter(java.awt.dnd.DragSourceDragEvent dragEvent)
           
 void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetEvent)
           
 void dragExit(java.awt.dnd.DragSourceEvent dragEvent)
           
 void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
           
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent dragGestureEvent)
           
 void dragOver(java.awt.dnd.DragSourceDragEvent dragEvent)
           
 void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetEvent)
           
 void drop(java.awt.dnd.DropTargetDropEvent dropTargetEvent)
           
 void dropActionChanged(java.awt.dnd.DragSourceDragEvent dragEvent)
           
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetEvent)
           
 ReportFieldListItem getLeadingSelectionItem()
           
 javax.swing.JList getList()
           
 java.util.Vector<ReportFieldListItem> getReportFieldListItems()
           
 java.util.ArrayList<DateFieldModel> getSelectedDateFieldModels()
           
 void removeDateFieldModels(java.util.ArrayList<DateFieldModel> dateFieldModels)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportFieldList

public ReportFieldList(SessionProperties sessionProperties)
Method Detail

addMouseListener

public void addMouseListener(java.awt.event.MouseListener mouseListener)

getList

public javax.swing.JList getList()

getSelectedDateFieldModels

public java.util.ArrayList<DateFieldModel> getSelectedDateFieldModels()

addDateFieldModels

public void addDateFieldModels(java.util.ArrayList<DateFieldModel> dateFieldModels)

removeDateFieldModels

public void removeDateFieldModels(java.util.ArrayList<DateFieldModel> dateFieldModels)

getReportFieldListItems

public java.util.Vector<ReportFieldListItem> getReportFieldListItems()

getLeadingSelectionItem

public ReportFieldListItem getLeadingSelectionItem()

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dragGestureEvent)
Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener

dragDropEnd

public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dragEvent)
Specified by:
dragDropEnd in interface java.awt.dnd.DragSourceListener

dragEnter

public void dragEnter(java.awt.dnd.DragSourceDragEvent dragEvent)
Specified by:
dragEnter in interface java.awt.dnd.DragSourceListener

dragExit

public void dragExit(java.awt.dnd.DragSourceEvent dragEvent)
Specified by:
dragExit in interface java.awt.dnd.DragSourceListener

dragOver

public void dragOver(java.awt.dnd.DragSourceDragEvent dragEvent)
Specified by:
dragOver in interface java.awt.dnd.DragSourceListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dragEvent)
Specified by:
dropActionChanged in interface java.awt.dnd.DragSourceListener

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetEvent)
Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetEvent)
Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

drop

public void drop(java.awt.dnd.DropTargetDropEvent dropTargetEvent)
Specified by:
drop in interface java.awt.dnd.DropTargetListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetEvent)
Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener