public interface AppHandle
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(java.util.function.Consumer<AppEvent> listener)
Add an event listener for the App represented by this handle.
|
java.lang.String |
getDataDirectory()
Get the data directory of the App.
|
java.lang.String |
getId()
Get the id of the App
|
java.lang.String |
getProperty(java.lang.String property)
Get a specified App property from the App's property file.
|
AppState |
getState()
Get state information.
|
boolean |
removeListener(java.util.function.Consumer<AppEvent> listener)
Remove an event listener for the App represented by this handle.
|
java.lang.String getProperty(java.lang.String property)
property
- The property's namejava.lang.String getDataDirectory()
java.lang.String getId()
boolean addListener(java.util.function.Consumer<AppEvent> listener)
listener
- to addboolean removeListener(java.util.function.Consumer<AppEvent> listener)
listener
- to remove