|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
neto.ProgressEvent
Object used by ProgressListener. The Progress event is for signaling the progress of the file transfer. The total progress when multiple files are transmitted and the progress of a single file are shown. The progress amount is signaled by percentage. The percentage range is from 0 to 100 percent. After a succesful file transfer the progress indicators are set back to 0.
ProgressListener
,
Serialized FormConstructor Summary | |
ProgressEvent(java.lang.Object source,
int current,
int total,
java.lang.String port)
Initializes a new instance of this object. |
Method Summary | |
int |
GetCurrentPercentage()
Returns the percentage of a succesful transfer of the current file. |
java.lang.String |
getPort()
Returns a string that specifies which serial port the message comes from. |
int |
GetTotalPercentage()
Returns the percentage of a succesful transfer of all files together. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProgressEvent(java.lang.Object source, int current, int total, java.lang.String port)
NOTE: When only 1 file is transferred, current and total are equal to eachother.
source
- object wich created this ProtocolMessageEvent object.current
- an integer expression that specifies the progress of the
current file. The current parameter represents the
percentage of a succesful transfer.total
- an integer expression that specifies the progress of all
files together. The total parameter represents the
percentage of a succesful transfer.port
- a string that specifies which serial port the message comes
from.Method Detail |
public int GetCurrentPercentage()
public java.lang.String getPort()
public int GetTotalPercentage()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |