|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.ui.RunningInterface
Generic running interface type. A running interface is in charge of defining all the events handlers.
UserInterface
Constructor Summary | |
RunningInterface()
|
Method Summary | |
abstract sam.event.FileEventListener |
getFileEventListener()
Builds a new FileEvent listener. |
abstract sam.event.ProgressEventListener |
getProgressEventListener()
Builds a new ProgressEvent listener. |
void |
print(java.lang.String message)
Prints a message to inform the user of something normal. |
abstract void |
print(java.lang.String title,
java.lang.String message)
Prints a message to inform the user of something normal. |
void |
test()
Simple test code. |
boolean |
yesNo(java.lang.String question)
Asks a question to the user. |
abstract boolean |
yesNo(java.lang.String title,
java.lang.String question)
Asks a question to the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RunningInterface()
Method Detail |
public abstract sam.event.FileEventListener getFileEventListener()
FileEvent
listener.
Note that instantiation is lazy and occurs at most once.
Moreover FileEvent
are delivered synchronously.
null
if no FileEvent
listener should be defined.FileEventListener
public abstract sam.event.ProgressEventListener getProgressEventListener()
ProgressEvent
listener.
Note that instantiation is lazy and occurs at most once.
Moreover ProgressEvent
are delivered asynchronously but remained ordered (and are all delivered).
null
if no ProgressEvent
listener should be defined.ProgressEventListener
public abstract void print(java.lang.String title, java.lang.String message)
title
- the title (or type) of the message delivered,
or null
if no title is specified.message
- the actual message to be delivered.
Note that neither title
nor message
will ever be null
.public void print(java.lang.String message)
message
- the actual message to be delivered.
Note that neither title
nor message
will ever be null
.public abstract boolean yesNo(java.lang.String title, java.lang.String question)
public boolean yesNo(java.lang.String question)
public void test()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |