ghm.follow.systemInterface
Class DefaultSystemInterface

java.lang.Object
  extended by ghm.follow.systemInterface.DefaultSystemInterface
All Implemented Interfaces:
SystemInterface

public class DefaultSystemInterface
extends java.lang.Object
implements SystemInterface

Default implementation of SystemInterface for the Follow application.

Author:
Greg Merrill

Field Summary
protected  FollowApp app
           
 
Constructor Summary
DefaultSystemInterface(FollowApp app)
           
 
Method Summary
 void exit(int code)
          Used in lieu of System.exit();
 java.io.File getFileFromUser()
          Normally, this method should delegate to a file chooser or other appropriate file selection mechanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

app

protected FollowApp app
Constructor Detail

DefaultSystemInterface

public DefaultSystemInterface(FollowApp app)
Method Detail

getFileFromUser

public java.io.File getFileFromUser()
Description copied from interface: SystemInterface
Normally, this method should delegate to a file chooser or other appropriate file selection mechanism. However, it can be overriden by tests to return temporary files.

Specified by:
getFileFromUser in interface SystemInterface
Returns:
the File selected by the user

exit

public void exit(int code)
Description copied from interface: SystemInterface
Used in lieu of System.exit();

Specified by:
exit in interface SystemInterface
Parameters:
code - exit status code


Copyright © 2008. All Rights Reserved.