org.opensha.sha.gui.controls
Class ConfirmDialogControlPanel

java.lang.Object
  extended by org.opensha.commons.gui.ControlPanel
      extended by org.opensha.sha.gui.controls.ConfirmDialogControlPanel
All Implemented Interfaces:
Named
Direct Known Subclasses:
IM_EventSetCEA_ControlPanel, PuenteHillsScenarioControlPanelUsingEqkRuptureCreation, SanAndreasScenarioControlPanel

public abstract class ConfirmDialogControlPanel
extends ControlPanel

This is a special type of ControlPanel which instead of displaying a GUI component where the user makes selections, simply presents a confirmation dialog and applys changes if the user selects "OK".

Author:
kevin

Constructor Summary
ConfirmDialogControlPanel(String name, String message, Component parent)
           
 
Method Summary
abstract  void applyControl()
          This method will be called if the user selects "OK" in the confirmation dialog.
 Window getComponent()
           
 void showControlPanel()
           
 
Methods inherited from class org.opensha.commons.gui.ControlPanel
doinit, getName, init, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfirmDialogControlPanel

public ConfirmDialogControlPanel(String name,
                                 String message,
                                 Component parent)
Method Detail

getComponent

public Window getComponent()
Specified by:
getComponent in class ControlPanel

showControlPanel

public void showControlPanel()
Overrides:
showControlPanel in class ControlPanel

applyControl

public abstract void applyControl()
This method will be called if the user selects "OK" in the confirmation dialog.