Mp3dings 
20100427

net.sourceforge.mp3dings.utils
Class ExternalApplication

java.lang.Object
  extended by net.sourceforge.mp3dings.utils.Bean
      extended by net.sourceforge.mp3dings.utils.ExternalApplication
All Implemented Interfaces:
Serializable

public class ExternalApplication
extends Bean
implements Serializable

See Also:
Serialized Form

Field Summary
static int CONSOLE
           
static int CUSTOM
           
static int ENQUEUE
           
static int FILE_LIST
           
static int LOOP
           
static int MP3DINGS
           
static int NONE
           
static int PLAY
           
static int PLAYLIST
           
static String PROPERTY_CALL_MODE
           
static String PROPERTY_ERROR_OUTPUT
           
static String PROPERTY_ERROR_OUTPUT_PATH
           
static String PROPERTY_EXE_PATH
           
static String PROPERTY_EXPORTER
           
static String PROPERTY_INPUT
           
static String PROPERTY_INPUT_PATH
           
static String PROPERTY_OUTPUT
           
static String PROPERTY_OUTPUT_PATH
           
static String PROPERTY_THREAD
           
static String PROPERTY_WORKING_DIRECTORY
           
static String PROPERTY_WORKING_DIRECTORY_PATH
           
static int SINGLE_FILE
           
static int SYSTEM_SHELL
           
 
Fields inherited from class net.sourceforge.mp3dings.utils.Bean
L_NO_ID, NO_ID, PROPERTY_ID, PROPERTY_NAME
 
Constructor Summary
ExternalApplication()
           
ExternalApplication(ExternalApplication app)
           
 
Method Summary
 boolean equals(Object o)
           
 void execute(File[] files, ProcessIOPane console)
           
 void execute(File[] files, ProcessIOPane console, ExceptionHandler exceptionHandler)
           
 void execute(File[] files, ProcessIOPane console, ExceptionHandler exceptionHandler, Runnable runWhenDone)
           
 int getCallMode()
           
 int getErrorOutput()
           
 String getErrorOutputPath()
           
 String getExePath()
           
 int getExporter()
           
 int getInput()
           
 String getInputPath()
           
 String getName()
           
 int getOutput()
           
 String getOutputPath()
           
static Preferences getPrefNode()
           
 int getThread()
           
static int getUnusedId()
           
 int getWorkingDirectory()
           
 String getWorkingDirectoryPath()
           
 int hashCode()
           
static ExternalApplication load(int id)
           
static ExternalApplication load(Preferences prefs, int id)
           
 boolean needsMp3dingsConsole()
           
 void save(int id)
           
 void save(Preferences prefs, int id)
           
 void setCallMode(int callMode)
           
 void setErrorOutput(int err)
           
 void setErrorOutputPath(String err)
           
 void setExePath(String path)
           
 void setExporter(int selectedExporter)
           
 void setInput(int in)
           
 void setInputPath(String in)
           
 void setName(String s)
           
 void setOutput(int out)
           
 void setOutputPath(String out)
           
 void setThread(int thread)
           
 void setWorkingDirectory(int workingDirectory)
           
 void setWorkingDirectoryPath(String pwd)
           
 String toString()
           
 
Methods inherited from class net.sourceforge.mp3dings.utils.Bean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getConstraints, getId, getPropertyChangeListeners, getPropertyChangeListeners, isSavable, load, load, removePropertyChangeListener, removePropertyChangeListener, save, save, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PLAY

public static final int PLAY
See Also:
Constant Field Values

ENQUEUE

public static final int ENQUEUE
See Also:
Constant Field Values

SYSTEM_SHELL

public static final int SYSTEM_SHELL
See Also:
Constant Field Values

MP3DINGS

public static final int MP3DINGS
See Also:
Constant Field Values

CONSOLE

public static final int CONSOLE
See Also:
Constant Field Values

CUSTOM

public static final int CUSTOM
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

SINGLE_FILE

public static final int SINGLE_FILE
See Also:
Constant Field Values

FILE_LIST

public static final int FILE_LIST
See Also:
Constant Field Values

LOOP

public static final int LOOP
See Also:
Constant Field Values

PLAYLIST

public static final int PLAYLIST
See Also:
Constant Field Values

PROPERTY_EXE_PATH

public static final String PROPERTY_EXE_PATH
See Also:
Constant Field Values

PROPERTY_WORKING_DIRECTORY

public static final String PROPERTY_WORKING_DIRECTORY
See Also:
Constant Field Values

PROPERTY_WORKING_DIRECTORY_PATH

public static final String PROPERTY_WORKING_DIRECTORY_PATH
See Also:
Constant Field Values

PROPERTY_CALL_MODE

public static final String PROPERTY_CALL_MODE
See Also:
Constant Field Values

PROPERTY_EXPORTER

public static final String PROPERTY_EXPORTER
See Also:
Constant Field Values

PROPERTY_OUTPUT

public static final String PROPERTY_OUTPUT
See Also:
Constant Field Values

PROPERTY_OUTPUT_PATH

public static final String PROPERTY_OUTPUT_PATH
See Also:
Constant Field Values

PROPERTY_INPUT

public static final String PROPERTY_INPUT
See Also:
Constant Field Values

PROPERTY_INPUT_PATH

public static final String PROPERTY_INPUT_PATH
See Also:
Constant Field Values

PROPERTY_ERROR_OUTPUT

public static final String PROPERTY_ERROR_OUTPUT
See Also:
Constant Field Values

PROPERTY_ERROR_OUTPUT_PATH

public static final String PROPERTY_ERROR_OUTPUT_PATH
See Also:
Constant Field Values

PROPERTY_THREAD

public static final String PROPERTY_THREAD
See Also:
Constant Field Values
Constructor Detail

ExternalApplication

public ExternalApplication()

ExternalApplication

public ExternalApplication(ExternalApplication app)
Method Detail

setName

public void setName(String s)
Overrides:
setName in class Bean

getName

public String getName()
Overrides:
getName in class Bean

setExePath

public void setExePath(String path)

getExePath

public String getExePath()

setWorkingDirectory

public void setWorkingDirectory(int workingDirectory)

getWorkingDirectory

public int getWorkingDirectory()

setWorkingDirectoryPath

public void setWorkingDirectoryPath(String pwd)

getWorkingDirectoryPath

public String getWorkingDirectoryPath()

setCallMode

public void setCallMode(int callMode)

getCallMode

public int getCallMode()

setExporter

public void setExporter(int selectedExporter)

getExporter

public int getExporter()

setOutput

public void setOutput(int out)

getOutput

public int getOutput()

setOutputPath

public void setOutputPath(String out)

getOutputPath

public String getOutputPath()

setInput

public void setInput(int in)

getInput

public int getInput()

setInputPath

public void setInputPath(String in)

getInputPath

public String getInputPath()

setErrorOutput

public void setErrorOutput(int err)

getErrorOutput

public int getErrorOutput()

setErrorOutputPath

public void setErrorOutputPath(String err)

getErrorOutputPath

public String getErrorOutputPath()

needsMp3dingsConsole

public boolean needsMp3dingsConsole()

setThread

public void setThread(int thread)

getThread

public int getThread()

toString

public String toString()
Overrides:
toString in class Object

load

public static ExternalApplication load(Preferences prefs,
                                       int id)

load

public static ExternalApplication load(int id)

save

public void save(int id)

save

public void save(Preferences prefs,
                 int id)

getUnusedId

public static int getUnusedId()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getPrefNode

public static Preferences getPrefNode()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

execute

public void execute(File[] files,
                    ProcessIOPane console)
             throws FileNotFoundException
Throws:
FileNotFoundException

execute

public void execute(File[] files,
                    ProcessIOPane console,
                    ExceptionHandler exceptionHandler)
             throws FileNotFoundException
Throws:
FileNotFoundException

execute

public void execute(File[] files,
                    ProcessIOPane console,
                    ExceptionHandler exceptionHandler,
                    Runnable runWhenDone)
             throws FileNotFoundException
Parameters:
runWhenDone - is executed (in a new thread) when the external application terminates
Throws:
FileNotFoundException

Mp3dings 
20100427