|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.ui.Warning
Shows a simple warning dialog, beautified with a fancy image.
| Field Summary | |
static String |
ANAME
The name of the sound to play in case of warnings. |
protected JFrame |
frame_
The JFrame used to show warnings. |
static String |
INAME
The name of the image to show in warnings. |
static int |
IWIDTH
The width of the warning window. |
private static AsyncListener |
listener_
The listener used to receive event notification. |
private static Object |
lock_
The private static lock. |
protected JTextArea |
text_
The JLabel used to display the warning message. |
| Constructor Summary | |
private |
Warning()
|
| Method Summary | |
private void |
clear()
|
void |
displayMessage(String message)
Displays the given message in the warning window. |
protected void |
init()
Initializes the frame if it isn't already. |
private boolean |
launch()
|
static void |
main(String[] argv)
|
void |
notifiedOf(Object o)
This method is called with the event that caused the notification. |
static void |
popup(String message)
|
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static Object lock_
private static AsyncListener listener_
public static final String INAME
public static final String ANAME
public static final int IWIDTH
protected transient JFrame frame_
protected transient JTextArea text_
| Constructor Detail |
private Warning()
| Method Detail |
public static void popup(String message)
protected void init()
throws IOException,
ImageException,
InterruptedException
IOException
ImageException
InterruptedExceptionpublic void displayMessage(String message)
message - The warning message.private boolean launch()
private void clear()
public void notifiedOf(Object o)
Listener
notifiedOf in interface Listenero - The object describing the event.public void run()
run in interface Runnablepublic static void main(String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||