|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vinay.ui.vinui.fw.core.Application
Represents a UI Application. An application created using the framework must have a class of this type and the class name must be returned by the getAppClass() method of AppInit. Each application has a context available to it. It can be used to share data across pages.
Constructor Summary | |
Application()
|
Method Summary | |
protected void |
addPage(Page page)
Add a new page to the application |
protected Context |
getApplicationContext()
Returns the context of the application |
protected Page |
getDefaultPage()
|
protected long |
getId()
|
Page |
getNavigateToPage()
|
protected Page |
getPage(long id)
|
abstract void |
init()
A lifecycle method that is invoked once during application startup. |
protected boolean |
isNavigationEnabled()
|
protected void |
setDefaultPage(java.lang.String pageName)
Sets the default page of the application. |
protected void |
setNavigation(java.lang.String targetPageName)
|
void |
setNavigationEnabled(boolean navigationEnabled)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Application()
Method Detail |
public abstract void init()
addPage(Page)
,
setDefaultPage(String)
protected Context getApplicationContext()
Context
protected void setDefaultPage(java.lang.String pageName)
pageName
- name of the page createdprotected Page getDefaultPage()
protected long getId()
protected void addPage(Page page)
page
- protected Page getPage(long id)
protected void setNavigation(java.lang.String targetPageName)
public Page getNavigateToPage()
protected boolean isNavigationEnabled()
public void setNavigationEnabled(boolean navigationEnabled)
navigationEnabled
- The navigationEnabled to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |