project35.io
Class ImportTableHeaderClicker

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by project35.io.ImportTableHeaderClicker
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener

public class ImportTableHeaderClicker
extends java.awt.event.MouseAdapter
implements java.awt.event.ActionListener

The default import feature reads a tab-delimited text file. Once the user decides what kind of record will be created from the table rows, she will associate a column with a field in the record. This class governs the right click menus options that appear for each data column. The menus list the fields you can associate with a column.


Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


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

Constructor Summary
ImportTableHeaderClicker(Project35UIFactory project35UIFactory, javax.swing.table.JTableHeader tableHeader)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void mousePressed(java.awt.event.MouseEvent event)
           
 void mouseReleased(java.awt.event.MouseEvent event)
           
 void setFieldNames(java.lang.String[] fieldNames, boolean[] isRequiredField)
          sets the field names that will appear as choices when user right clicks over a column header in the table
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportTableHeaderClicker

public ImportTableHeaderClicker(Project35UIFactory project35UIFactory,
                                javax.swing.table.JTableHeader tableHeader)
Method Detail

setFieldNames

public void setFieldNames(java.lang.String[] fieldNames,
                          boolean[] isRequiredField)
sets the field names that will appear as choices when user right clicks over a column header in the table

Parameters:
fieldNames - the collection of edit fields for a particular record type.
isRequiredField - an array that matches the field names and indicates whether a field name is required or not. Required fields always appear in bold font

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent event)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter