org.opensha.sha.gui.controls
Class ControlPanel

java.lang.Object
  extended by org.opensha.sha.gui.controls.ControlPanel
All Implemented Interfaces:
Named
Direct Known Subclasses:
AxisLimitsControlPanel, CalculationSettingsControlPanel, ConfirmDialogControlPanel, CyberShakePlotFromDBControlPanel, CyberShakeSiteSetterControlPanel, DisaggregationControlPanel, ERF_EpistemicListControlPanel, GcimControlPanel, GenerateHazusControlPanelForSingleMultipleIMRs, GMTMapCalcOptionControl, PEER_TestCaseSelectorControlPanel, PlottingOptionControl, RegionsOfInterestControlPanel, RunAll_PEER_TestCasesControlPanel, SiteDataControlPanel, SitesOfInterestControlPanel, X_ValuesInCurveControlPanel, XY_ValuesControlPanel

public abstract class ControlPanel
extends Object
implements Named

This is an abstract class representing a control panel to be included in one or more applications. Implementing classes should put all setup work in the doinit method, and return a GUI component to be displayed in the getComponent method.

Author:
kevin

Constructor Summary
ControlPanel(String name)
           
 
Method Summary
abstract  void doinit()
          This method will be called the first time the control panel is displayed.
abstract  Window getComponent()
           
 String getName()
          Returns the name of this object
 void init()
           
 boolean isInitialized()
           
 void showControlPanel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlPanel

public ControlPanel(String name)
Method Detail

doinit

public abstract void doinit()
This method will be called the first time the control panel is displayed. All setup should be in this method and not in the constructor, so that the apps can start quickly.


isInitialized

public boolean isInitialized()

getComponent

public abstract Window getComponent()

init

public final void init()

getName

public String getName()
Description copied from interface: Named
Returns the name of this object

Specified by:
getName in interface Named

showControlPanel

public void showControlPanel()