Package jmri.jmrit.automat
Class AbstractAutomaton.MsgFrame
- java.lang.Object
-
- jmri.jmrit.automat.AbstractAutomaton.MsgFrame
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- AbstractAutomaton
public class AbstractAutomaton.MsgFrame extends java.lang.Object implements java.lang.Runnable
Internal class to show a Frame
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JTextArea
mArea
(package private) javax.swing.JButton
mButton
(package private) javax.swing.JFrame
mFrame
(package private) java.lang.String
mMessage
(package private) boolean
mPause
(package private) boolean
mShow
-
Constructor Summary
Constructors Constructor Description MsgFrame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
format()
Abstract method to handle formatting of the text on a showvoid
hide()
void
run()
void
show(java.lang.String pMessage, boolean pPause)
Show a message in the message frame, and optionally wait for the user to acknowledge.
-
-
-
Constructor Detail
-
MsgFrame
public MsgFrame()
-
-
Method Detail
-
hide
public void hide()
-
show
public void show(java.lang.String pMessage, boolean pPause)
Show a message in the message frame, and optionally wait for the user to acknowledge.- Parameters:
pMessage
- the message to showpPause
- true if this automaton should wait for user acknowledgment; false otherwise
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
format
protected void format()
Abstract method to handle formatting of the text on a show
-
-