edu.jhu.tmaj.client.shared
Class PanelForwarder
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 InputPaneltableData
- the TableData in an InputPanelcurrentBean
- the bean the current InputPanel representsforeignBean
- the bean the foreign InputPanel representsindexablePanel
- the Panel containing both the current Input Panel and foreign oneforeignIndex
- the index of the foreign InputPanel on the indexablePanelisReversed
- true if the bean is going to the top of a hierachy (e.g from blocks to
specimens.)