java.lang.Objectjava.util.EventObject
com.install4j.api.events.InstallerEvent
com.install4j.api.events.InstallerFileInstallationEvent
public class InstallerFileInstallationEvent
The event object that is passed to installer event listeners when the file installation is started.
Event listeners are registered in the InstallerContext
.
This event object contains additional information about the installed files.
The event type EventType.FILE_INSTALLATION_STARTED
produces this event object when fired.
InstallerEventListener
,
Context.addInstallerEventListener(InstallerEventListener)
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
InstallerFileInstallationEvent(java.lang.Object source,
Context context,
EventType type,
long totalSize,
long fileCount)
The constructor is called by the framework. |
Method Summary | |
---|---|
long |
getFileCount()
Returns the total file count |
long |
getTotalSize()
Returns the total size of the installation in bytes |
java.lang.String |
getVerbose()
Return a verbose description of this event. |
java.lang.String |
toString()
|
Methods inherited from class com.install4j.api.events.InstallerEvent |
---|
getContext, getType, wasSuccessful |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstallerFileInstallationEvent(java.lang.Object source, Context context, EventType type, long totalSize, long fileCount)
source
- the event sourcecontext
- the contexttype
- the event type.totalSize
- the total size of the installation in bytesfileCount
- the total file countMethod Detail |
---|
public long getTotalSize()
public long getFileCount()
public java.lang.String toString()
toString
in class InstallerEvent
public java.lang.String getVerbose()
InstallerEvent
getVerbose
in class InstallerEvent