uk.ac.ed.paxinos3d
Class Previewer

java.lang.Object
  extended by uk.ac.ed.paxinos3d.Previewer

public class Previewer
extends Object

A simple, static class to display a URL in the system browser.

Author:
Robert Cannon

Constructor Summary
Previewer()
           
 
Method Summary
static Previewer getInstance()
          Returns the previewer instance.
 String getLastMessage()
          Returns the last message.
 String getPlatform()
           
static boolean show(String url)
          Shows a url.
 boolean showURL(String url)
          Shows a url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Previewer

public Previewer()
Method Detail

getInstance

public static Previewer getInstance()
Returns the previewer instance.

Returns:
the previewer instance

show

public static boolean show(String url)
Shows a url.

Parameters:
url - the url
Returns:
whether the url was shown

getLastMessage

public String getLastMessage()
Returns the last message.

Returns:
the last message

showURL

public boolean showURL(String url)
Shows a url.

Parameters:
url - the url
Returns:
whether the url was shown

getPlatform

public String getPlatform()