sam.ui
Class RunningInterface

java.lang.Object
  |
  +--sam.ui.RunningInterface

public abstract class RunningInterface
extends java.lang.Object

Generic running interface type. A running interface is in charge of defining all the events handlers.

See Also:
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

RunningInterface

public RunningInterface()
Method Detail

getFileEventListener

public abstract sam.event.FileEventListener getFileEventListener()
Builds a new FileEvent listener. Note that instantiation is lazy and occurs at most once. Moreover FileEvent are delivered synchronously.

Returns:
null if no FileEvent listener should be defined.
See Also:
FileEventListener

getProgressEventListener

public abstract sam.event.ProgressEventListener getProgressEventListener()
Builds a new ProgressEvent listener. Note that instantiation is lazy and occurs at most once. Moreover ProgressEvent are delivered asynchronously but remained ordered (and are all delivered).

Returns:
null if no ProgressEvent listener should be defined.
See Also:
ProgressEventListener

print

public abstract void print(java.lang.String title,
                           java.lang.String message)
Prints a message to inform the user of something normal.

Parameters:
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.

print

public void print(java.lang.String message)
Prints a message to inform the user of something normal.

Parameters:
message - the actual message to be delivered. Note that neither title nor message will ever be null.

yesNo

public abstract boolean yesNo(java.lang.String title,
                              java.lang.String question)
Asks a question to the user.


yesNo

public boolean yesNo(java.lang.String question)
Asks a question to the user.


test

public void test()
Simple test code.