Package com.install4j.api.events
Class InstallerVariableEvent
java.lang.Object
java.util.EventObject
com.install4j.api.events.InstallerEvent
com.install4j.api.events.InstallerVariableEvent
- All Implemented Interfaces:
Serializable
The event object that is passed to installer event listeners for the variable change event type.
Event listeners are registered in the
InstallerContext
.
This event object contains additional information about the changed variable.
The event type and EventType.VARIABLE_CHANGED
produces this event object when fired.
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionInstallerVariableEvent
(Object source, Context context, String variableName) The constructor is called by the framework. -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the variable that was changed.Return a verbose description of this event.toString()
Methods inherited from class com.install4j.api.events.InstallerEvent
getContext, getType, setContext, wasSuccessful
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
InstallerVariableEvent
The constructor is called by the framework.- Parameters:
source
- the event sourcecontext
- the contextvariableName
- the name of the changed variable
-
-
Method Details
-
getVariableName
Get the name of the variable that was changed.- Returns:
- the name of the variable
-
toString
- Overrides:
toString
in classInstallerEvent
-
getVerbose
Description copied from class:InstallerEvent
Return a verbose description of this event.- Overrides:
getVerbose
in classInstallerEvent
- Returns:
- the description
-