|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.implementation.AbstractShutDownTask
jmri.implementation.swing.SwingShutDownTask
public class SwingShutDownTask
Provides a base for using Swing to ask if shutdown should conditionally continue.
Sequence:
If no "action" name is provided, only the continue and cancel options are shown.
| Constructor Summary | |
|---|---|
SwingShutDownTask(String name,
String warning,
String action,
Component component)
Constructor specifies the warning message and action to take |
|
| Method Summary | |
|---|---|
protected boolean |
checkPromptNeeded()
Provide a subclass-specific check as to whether it's OK to shutdown. |
protected boolean |
doPrompt()
Provide a subclass-specific method to handle the request to fix the problem. |
boolean |
execute()
Take the necessary action. |
| Methods inherited from class jmri.implementation.AbstractShutDownTask |
|---|
name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingShutDownTask(String name, String warning, String action, Component component)
| Method Detail |
|---|
public boolean execute()
protected boolean checkPromptNeeded()
protected boolean doPrompt()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||