public class BaseApp extends Object implements App
App
Modifier and Type | Field and Description |
---|---|
protected AppContext |
appContext |
Modifier | Constructor and Description |
---|---|
protected |
BaseApp(AppContext appContext,
AppView view) |
Modifier and Type | Method and Description |
---|---|
protected AppContext |
getAppContext() |
AppView |
getView() |
void |
locationChanged(Location location)
Called when the location changes and the app is already running.
|
void |
openChooseDialog(UiContext overlayLayer,
String selectedId,
ChooseDialogCallback callback)
Open a dialog which enables a user to choose an item from the app.
|
void |
openChooseDialog(UiContext uiContext,
String targetTreeRootPath,
String selectedId,
ChooseDialogCallback callback) |
void |
start(Location location)
Called when the app is started.
|
void |
stop()
Called when the user stops the app.
|
protected AppContext appContext
@Inject protected BaseApp(AppContext appContext, AppView view)
public void locationChanged(Location location)
App
locationChanged
in interface App
location
- the new locationpublic void start(Location location)
App
protected AppContext getAppContext()
public void stop()
App
public void openChooseDialog(UiContext overlayLayer, String selectedId, ChooseDialogCallback callback)
App
openChooseDialog
in interface App
overlayLayer
- The layer over which the opened dialog should be presented and be modal. See Shell, SubAppContext
, AppContext
.public void openChooseDialog(UiContext uiContext, String targetTreeRootPath, String selectedId, ChooseDialogCallback callback)
openChooseDialog
in interface App
Copyright © 2018 Magnolia International Ltd.. All rights reserved.