|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.morpho.query.ResultPanelAndFrameMediator
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
Constructor Summary | |
ResultPanelAndFrameMediator()
|
Method Summary | |
void |
disableOpenButton()
Method to disable the open button |
void |
enableOpenButton()
Method to enable the open button |
void |
init()
Method to initialize |
void |
registerOpenButton(javax.swing.JButton myOpenButton)
Method to register a open button |
void |
registerResultPanel(javax.swing.JPanel myResultPanel)
Method to register a resultPanel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultPanelAndFrameMediator()
Method Detail |
public void registerResultPanel(javax.swing.JPanel myResultPanel)
myResultPanel
- the panel which contain the table that mediator need
to knowpublic void registerOpenButton(javax.swing.JButton myOpenButton)
myOpenButton
- the button that mediator need to knowpublic void disableOpenButton()
public void enableOpenButton()
public void init()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |