edu.ucsb.nceas.morpho.plugins.datapackagewizard
Interface CustomTablePopupListener

All Known Implementing Classes:
AbstractCustomTablePopupHandler

public interface CustomTablePopupListener

Interface CustomTablePopupListener This interface is used to define listeners for popup events for the CustomTable. Popup events are triggered by mouse clicks on the table headers. The listeners are responsible to define a dialog that is to presented as a popup and a possible String that should be displayed in the table header.


Method Summary
 java.lang.String getDisplayString()
          gets an optional String to be displayed in the table header.
 javax.swing.JDialog getPopupDialog()
          gets the dialog that is be popped up when the user clicks on a table header.
 

Method Detail

getPopupDialog

public javax.swing.JDialog getPopupDialog()
gets the dialog that is be popped up when the user clicks on a table header. The implementor is responsible to ensure that the dialog is removed after the necessary operations are performed.

Returns:
the dialog window to be popped up

getDisplayString

public java.lang.String getDisplayString()
gets an optional String to be displayed in the table header. This method is invoked by the CustomTable after the dialog is popped up. If no String needs to be displayed, a null should be returned.

Returns:
the String to be displayed in the table header. null is returned if no string is to be displayed.


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.