edu.jhu.tmaj.client.shared
Class PanelForwarder

java.lang.Object
  extended by edu.jhu.tmaj.client.shared.PanelForwarder

public final class PanelForwarder
extends java.lang.Object

A Utility class that returns a 'forwarding' labeled '<<<' or '>>>'. When the forwarding button is clicked, currently selected panel on a JTabbedPane (IndexablePanel) is changed and data in the new panel is initialized.


Method Summary
static javax.swing.JButton getForwardingButton(TableData4 tableData, JBean foreignBean, DoubleTabbedPaneHolder doubleTabbedPaneHolder, java.lang.String foreignIndexName, InputPanel4 foreignInputPanel, boolean isReversed)
          Returns a JButton that when clicked will change the current InputPanel to the Foreign Input Panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getForwardingButton

public static javax.swing.JButton getForwardingButton(TableData4 tableData,
                                                      JBean foreignBean,
                                                      DoubleTabbedPaneHolder doubleTabbedPaneHolder,
                                                      java.lang.String foreignIndexName,
                                                      InputPanel4 foreignInputPanel,
                                                      boolean isReversed)
Returns a JButton that when clicked will change the current InputPanel to the Foreign Input Panel.

Parameters:
table - the JTable in an InputPanel
tableData - the TableData in an InputPanel
currentBean - the bean the current InputPanel represents
foreignBean - the bean the foreign InputPanel represents
indexablePanel - the Panel containing both the current Input Panel and foreign one
foreignIndex - the index of the foreign InputPanel on the indexablePanel
isReversed - true if the bean is going to the top of a hierachy (e.g from blocks to specimens.)