|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.util.launcher.DefaultLauncher
public class DefaultLauncher
Provides a default implementation for the Launcher
interface.
Constructor Summary | |
---|---|
DefaultLauncher(java.lang.String key,
java.lang.String name,
java.lang.String command)
|
Method Summary | |
---|---|
java.lang.String |
getCommand()
Returns the command of the launcher. |
java.lang.String |
getKey()
Returns the key. |
java.lang.String |
getName()
Returns the name of the launcher. |
boolean |
isEditable()
Returns true. |
boolean |
isEnabled()
Returns true. |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLauncher(java.lang.String key, java.lang.String name, java.lang.String command)
Method Detail |
---|
public java.lang.String getCommand()
getCommand
in interface Launcher
public java.lang.String getKey()
getKey
in interface Launcher
public java.lang.String getName()
getName
in interface Launcher
public boolean isEditable()
isEditable
in interface Launcher
public boolean isEnabled()
isEnabled
in interface Launcher
public void open(java.io.File file) throws java.io.IOException
file
.
open
in interface Launcher
java.io.IOException
public void setCommand(java.lang.String command)
command
.
setCommand
in interface Launcher
public void open(java.net.URL url) throws java.io.IOException
Launcher
open
in interface Launcher
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |