|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.process.ProcessListenerList
public class ProcessListenerList
Convenience class used to have more than one listener on any given process.
| Constructor Summary | |
|---|---|
ProcessListenerList()
Creates a new process listener list. |
|
| Method Summary | |
|---|---|
void |
add(ProcessListener listener)
Adds the specified listener to the list of listeners. |
void |
processDied(int returnValue)
Propagates the process died event to all registered listeners. |
void |
processOutput(byte[] buffer,
int offset,
int length)
Propagates the process output event to all registered listeners. |
void |
processOutput(java.lang.String output)
Propagates the process output event to all registered listeners. |
void |
remove(ProcessListener listener)
Removes the specified listener from the list of listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessListenerList()
| Method Detail |
|---|
public void add(ProcessListener listener)
listener - process listener to add.public void remove(ProcessListener listener)
listener - process listener to remove.public void processDied(int returnValue)
processDied in interface ProcessListenerreturnValue - the value returned by the process (return code).
public void processOutput(byte[] buffer,
int offset,
int length)
processOutput in interface ProcessListenerbuffer - contains the process' output.offset - offset in buffer at which the process' output starts.length - length of the process' output in buffer.public void processOutput(java.lang.String output)
processOutput in interface ProcessListeneroutput - contains the encoded process output.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard