Package com.independentsoft.office.odf
Class ScriptEventListener
java.lang.Object
com.independentsoft.office.odf.ScriptEventListener
- All Implemented Interfaces:
IEventListener
Binds an event to a macro.
- See Also:
ScriptEventEvent
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ScriptEventListener class.Instantiates a new script event listener. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the language.Gets the macro code that should be called for an event.Gets the macro name.getName()Gets the name.voidsetLanguage(String language)Sets the language.voidsetMacroLocation(String macroLocation)Sets the macro code that should be called for an event.voidsetMacroName(String macroName)Sets the macro name.voidSets the name.toString()Converts the value of the current ScriptEventListener object to its equivalent string representation.
-
Constructor Details
-
ScriptEventListener
public ScriptEventListener()Initializes a new instance of the ScriptEventListener class. -
ScriptEventListener
Instantiates a new script event listener.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIEventListener- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current ScriptEventListener object to its equivalent string representation. -
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getLanguage
Gets the language.- Returns:
- the language
-
setLanguage
Sets the language.- Parameters:
language- the new language
-
getMacroName
Gets the macro name. The interpretation of the name is script language dependent.- Returns:
- the macro name
-
setMacroName
Sets the macro name. The interpretation of the name is script language dependent.- Parameters:
macroName- the new macro name
-
getMacroLocation
Gets the macro code that should be called for an event. The URI may have an arbitrary protocol. The interpretation of the URI is script language dependent.- Returns:
- the macro location
-
setMacroLocation
Sets the macro code that should be called for an event. The URI may have an arbitrary protocol. The interpretation of the URI is script language dependent.- Parameters:
macroLocation- the new macro location
-