public class EventPropertiesAssistant extends AddOnModule implements ReloadableFile
Constructor and Description |
---|
EventPropertiesAssistant(Context context,
String id)
Creates a new EventPropertiesAssistant
|
Modifier and Type | Method and Description |
---|---|
String |
getEventID(String key)
Gets the full event ID associated with the key
key |
String |
getEventPropertiesPath()
gets the String containing the Properties-Path
|
void |
registerEventID(String description,
String key,
String value)
Registers or adds an event to the local_events.properties file
|
void |
registerEventListener(EventListener eventListener)
Registers or adds an event to the local_events.properties file with the informations found in the EventListener
|
void |
reloadFile(String eventType) |
void |
unregisterEventID(String eventKey)
Unregisters or deletes an event from the local_events.properties file
|
getContext, getID
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, isOwner
debug, debug, error, error, fatal, fatal, warn, warn
exceptionThrown
public EventPropertiesAssistant(Context context, String id)
context
- the context to useid
- the id of the addonpublic String getEventPropertiesPath()
public String getEventID(String key)
key
key
- the key of the full event IDpublic void registerEventListener(EventListener eventListener)
eventListener
- the eventListener to addpublic void registerEventID(String description, String key, String value)
description
- a simple description of the Eventkey
- the key with which to store the event IDvalue
- the complete event IDpublic void unregisterEventID(String eventKey)
eventKey
- the key under which the complete event ID is stored in the properties filepublic void reloadFile(String eventType)
reloadFile
in interface ReloadableFile
Copyright © 2016. All rights reserved.