|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtiger.client.screen.BaseEntryScreen
public abstract class BaseEntryScreen
The main class of your GWT project should inherit from BaseEntryScreen instead of implementing EntryPoint
This class provides lazy loading functionality and some utility functions
| Field Summary | |
|---|---|
static java.lang.String |
historyPrefix
|
| Constructor Summary | |
|---|---|
BaseEntryScreen()
|
|
| Method Summary | |
|---|---|
void |
addHistorySupport()
Call this method from onModuleLoad() to add support for history. |
void |
changeHistory(java.lang.String historyToken)
|
BaseScreen |
getScreen(int index)
|
void |
onHistoryChanged(java.lang.String historyToken)
|
void |
reset_screens()
This is to clear all the screens from memory |
void |
showLoading(boolean visible)
This method allows you to show the "Loading..." message on the screen |
void |
showScreen(int index)
This method opens the screen identified by the index If the screen has not been loaded earlier, it is initialized |
void |
showScreen(int index,
java.lang.Object object)
This method opens the screen identified by the index If the screen has not been loaded earlier, it is initialized |
void |
showScreen(int index,
java.lang.String objectType,
java.lang.Long objectId)
This method opens the screen identified by the index If the screen has not been loaded earlier, it is initialized |
void |
showScreen(int index,
java.lang.String objectType,
java.lang.String objectId)
This method opens the screen identified by the index If the screen has not been loaded earlier, it is initialized |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.core.client.EntryPoint |
|---|
onModuleLoad |
| Field Detail |
|---|
public static java.lang.String historyPrefix
| Constructor Detail |
|---|
public BaseEntryScreen()
| Method Detail |
|---|
public void addHistorySupport()
public void changeHistory(java.lang.String historyToken)
public void onHistoryChanged(java.lang.String historyToken)
onHistoryChanged in interface com.google.gwt.user.client.HistoryListenerpublic void showLoading(boolean visible)
visible - if true then the message is displayed and is hidden when falsepublic void showScreen(int index)
index - ID of the screen to be loadedload
public void showScreen(int index,
java.lang.Object object)
index - ID of the screen to be loadedload
public void showScreen(int index,
java.lang.String objectType,
java.lang.Long objectId)
Where CUSTOMER_SCREEN is a static int variable identifying the screen "CUSTOMER" is a parameter passed to the screen to help it identify what objectID that is being passed CustId is a variable that could potentially be the primary key of the customer table. The expected behavior is that the screen displayed and the customer is loadedshowScreen(CUSTOMER_SCREEN, "CUSTOMER", CustId);
index - ID of the screen to be loaded.objectType - This is a parameter that is passed to the screen that is being
loaded.objectId - This is a parameter passed to the screen.load
public void showScreen(int index,
java.lang.String objectType,
java.lang.String objectId)
Where CUSTOMER_SCREEN is a static int variable identifying the screen "CUSTOMER" is a parameter passed to the screen to help it identify what objectID that is being passed CustId is a variable that could potentially be the primary key of the customer table. In this method the ID is a string that is converted to a Long variable. The expected behavior is that the screen displayed and the customer is loadedshowScreen(CUSTOMER_SCREEN, "CUSTOMER", CustId);
index - ID of the screen to be loaded.objectType - This is a parameter that is passed to the screen that is being
loaded.objectId - This is a parameter passed to the screen.public BaseScreen getScreen(int index)
public void reset_screens()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||