edu.ucsb.nceas.morpho.query
Class RefreshCommand

java.lang.Object
  |
  +--edu.ucsb.nceas.morpho.query.RefreshCommand

public class RefreshCommand
extends java.lang.Object
implements Command

Class to handle refresh command


Constructor Summary
RefreshCommand()
          Constructor of refreshCommand There is no parameter, means it will refresh current active morpho frame
RefreshCommand(MorphoFrame box)
          Constructor of RefreshCommand
RefreshCommand(OpenDialogBox myOpenDialog)
          Constructor of RefreshCommand
 
Method Summary
 void execute(java.awt.event.ActionEvent event)
          execute refresh command
static ResultPanel getResultPanelFromMorphoFrame(MorphoFrame frame)
          Gave a morphoFrame, get resultpanel from it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefreshCommand

public RefreshCommand()
Constructor of refreshCommand There is no parameter, means it will refresh current active morpho frame

RefreshCommand

public RefreshCommand(MorphoFrame box)
Constructor of RefreshCommand
Parameters:
box - specify a morphoframe need to be refreshed

RefreshCommand

public RefreshCommand(OpenDialogBox myOpenDialog)
Constructor of RefreshCommand
Parameters:
myOpenDialog - specify a Open dialog need to be refreshed
Method Detail

execute

public void execute(java.awt.event.ActionEvent event)
execute refresh command
Specified by:
execute in interface Command

getResultPanelFromMorphoFrame

public static ResultPanel getResultPanelFromMorphoFrame(MorphoFrame frame)
Gave a morphoFrame, get resultpanel from it. If morphFrame doesn't contain a resultPanel, null will be returned
Parameters:
frame - the morpho frame which contains the result panel


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