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:
java.io.Serializable
public class InstallerVariableEvent extends InstallerEvent
The event object that is passed to installer event listeners for the variable change event type. Event listeners are registered in theInstallerContext.This event object contains additional information about the changed variable. The event type and
EventType.VARIABLE_CHANGEDproduces this event object when fired.
-
-
Constructor Summary
Constructors Constructor Description InstallerVariableEvent(java.lang.Object source, Context context, java.lang.String variableName)The constructor is called by the framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetVariableName()Get the name of the variable that was changed.java.lang.StringgetVerbose()Return a verbose description of this event.java.lang.StringtoString()-
Methods inherited from class com.install4j.api.events.InstallerEvent
getContext, getType, setContext, wasSuccessful
-
-
-
-
Constructor Detail
-
InstallerVariableEvent
public InstallerVariableEvent(java.lang.Object source, Context context, java.lang.String variableName)The constructor is called by the framework.- Parameters:
source- the event sourcecontext- the contextvariableName- the name of the changed variable
-
-
Method Detail
-
getVariableName
public java.lang.String getVariableName()
Get the name of the variable that was changed.- Returns:
- the name of the variable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classInstallerEvent
-
getVerbose
public java.lang.String getVerbose()
Description copied from class:InstallerEventReturn a verbose description of this event.- Overrides:
getVerbosein classInstallerEvent- Returns:
- the description
-
-