edu.ucsb.nceas.morpho.query
Class ResultPanelAndFrameMediator
java.lang.Object
|
+--edu.ucsb.nceas.morpho.query.ResultPanelAndFrameMediator
- public class ResultPanelAndFrameMediator
- extends java.lang.Object
This class is a mediator between components: Resultset table and open button
If there is a selection in the table, open button will enable. Otherwise,
it is disable. These two components are both in OpenDialogBox and Search
Result Frame, so this class can be applied into both of them
Of course, more components can be added into this class
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultPanelAndFrameMediator
public ResultPanelAndFrameMediator()
registerResultPanel
public void registerResultPanel(javax.swing.JPanel myResultPanel)
- Method to register a resultPanel
- Parameters:
myResultPanel
- the panel which contain the table that mediator need
to know
registerOpenButton
public void registerOpenButton(javax.swing.JButton myOpenButton)
- Method to register a open button
- Parameters:
myOpenButton
- the button that mediator need to know
disableOpenButton
public void disableOpenButton()
- Method to disable the open button
enableOpenButton
public void enableOpenButton()
- Method to enable the open button
init
public void init()
- Method to initialize
Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.