|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.ui.framework.app.BaseApp
public class BaseApp
Basic app implementation with default behavior suitable for most apps.
App
Field Summary | |
---|---|
protected AppContext |
appContext
|
Constructor Summary | |
---|---|
protected |
BaseApp(AppContext appContext,
AppView view)
|
Method Summary | |
---|---|
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 |
start(Location location)
Called when the app is started. |
void |
stop()
Called when the user stops the app. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AppContext appContext
Constructor Detail |
---|
@Inject protected BaseApp(AppContext appContext, AppView view)
Method Detail |
---|
public void locationChanged(Location location)
App
locationChanged
in interface App
location
- the new locationpublic void start(Location location)
App
start
in interface App
location
- the location that triggered the app to be startedprotected AppContext getAppContext()
public void stop()
App
stop
in interface App
public AppView getView()
getView
in interface 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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |