org.xnap.util.launcher
Interface Launcher

All Known Subinterfaces:
Player
All Known Implementing Classes:
DefaultLauncher, DefaultPlayer, ITunesPlayer, JMFPlayer, KDELauncher, MacOSXLauncher, NoatunPlayer, WindowsLauncher, XMMSPlayer

public interface Launcher

Defines the requirements for classes that provide a launcher.


Method Summary
 java.lang.String getCommand()
          Returns the command used to launch files.
 java.lang.String getKey()
          Returns the unique preferences key.
 java.lang.String getName()
          Returns the name of the launcher that is displayed to the user.
 boolean isEditable()
          Returns true, if the command can be changed.
 boolean isEnabled()
          Returns true, if the launcher is available on the system.
 void open(java.io.File file)
          Launches file.
 void open(java.net.URL url)
          Opens the given URL.
 void setCommand(java.lang.String command)
          Sets command to command.
 

Method Detail

getCommand

java.lang.String getCommand()
Returns the command used to launch files.


getKey

java.lang.String getKey()
Returns the unique preferences key.


getName

java.lang.String getName()
Returns the name of the launcher that is displayed to the user.


isEnabled

boolean isEnabled()
Returns true, if the launcher is available on the system.


isEditable

boolean isEditable()
Returns true, if the command can be changed.


open

void open(java.io.File file)
          throws java.io.IOException
Launches file.

Throws:
java.io.IOException

open

void open(java.net.URL url)
          throws java.io.IOException
Opens the given URL.

Throws:
java.io.IOException

setCommand

void setCommand(java.lang.String command)
Sets command to command.



Copyright © 2001-2005 XNap Team. All Rights Reserved.