|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.gwtiger.client.screen.BaseScreen
public abstract class BaseScreen
All screens should inherit from BaseScreen This will help all the screens have consistant look and feel.
This also has utility methods to show the Loading message and error messages whenever required.
| Constructor Summary | |
|---|---|
BaseScreen()
Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
close()
Close/Hide the screen |
java.lang.String |
getCookie(java.lang.String cookieName)
Helper function to get the value from the cookie |
static GWTigerMessages |
getGWTigerMessages()
This method is used to return Internationalized messages |
static com.google.gwt.user.client.ui.Hyperlink |
getHyperlink(java.lang.String text,
int screenId)
|
com.google.gwt.user.client.ui.Hyperlink |
getHyperlink(java.lang.String text,
int screenId,
java.lang.String objectType,
long objectId)
|
static com.google.gwt.user.client.ui.Hyperlink |
getHyperlink(java.lang.String text,
java.lang.String screenName)
|
com.google.gwt.user.client.ui.Hyperlink |
getHyperlink(java.lang.String text,
java.lang.String screenName,
java.lang.String objectType,
java.lang.String objectId)
|
static GWTigerImageBundle |
getImages()
|
void |
load()
This method should be defined in all the inherited screens. This is called each time the screen is loaded. |
void |
load(java.lang.Object object)
|
void |
load(java.lang.String objectType,
java.lang.Long objectId)
This method should be defined in all the inherited screens. This is called each time the screen is loaded. |
void |
setCookie(java.lang.String cookieName,
java.lang.String value)
Helper function to save Cookie. |
static void |
setCookie(java.lang.String cookieName,
java.lang.String value,
int days)
Helper function to save Cookie |
void |
setErrorStyle(java.lang.String style)
This method sets the style for the error message |
void |
setErrorText(java.lang.String errorText)
Sets the error string to the given string. |
void |
setLoadingText(java.lang.String loadingText)
This method should be used to override the default loading message of |
void |
setTitleStyle(java.lang.String style)
This method should be used to override the default style of the title text |
void |
setTitleText(java.lang.String title)
Sets the title for the screen |
void |
showError(boolean visible)
Method to show or hide the Error Message |
static void |
showLoading(boolean visible)
Method to show or hide the Loading message |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getElement, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, onBrowserEvent, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseScreen()
| Method Detail |
|---|
public void close()
public static GWTigerMessages getGWTigerMessages()
public static GWTigerImageBundle getImages()
public void setErrorStyle(java.lang.String style)
style - style as used in the stylesheetpublic void setErrorText(java.lang.String errorText)
errorText - the error message to be displayed.public void setTitleText(java.lang.String title)
title - The text that should be set as the title for the screenpublic void setTitleStyle(java.lang.String style)
style - name of the stylepublic void setLoadingText(java.lang.String loadingText)
Loading...
loadingText - the text that will be used for the Loading messagepublic void showError(boolean visible)
visible - if
truethen the error message is displayed, hidden when
false
public static void showLoading(boolean visible)
visible - if
truethen the Loading message is displayed, hidden when
false
public void load()
showScreenpublic void clear()
public void load(java.lang.String objectType,
java.lang.Long objectId)
objectType - This parameter is passed to the screen. Is used to identify
which Object to loadobjectId - This is the parameter that identifies the ID of the object to
be loadedshowScreenpublic void load(java.lang.Object object)
public static void setCookie(java.lang.String cookieName,
java.lang.String value,
int days)
cookieName - name of the cookievalue - -
value to be saved in the cookiedays - -
number of days this cookie should be kept alive
public void setCookie(java.lang.String cookieName,
java.lang.String value)
cookieName - name of the cookievalue - -
value to be saved in the cookiepublic java.lang.String getCookie(java.lang.String cookieName)
cookieName - Name of the cookie
public static com.google.gwt.user.client.ui.Hyperlink getHyperlink(java.lang.String text,
java.lang.String screenName)
public static com.google.gwt.user.client.ui.Hyperlink getHyperlink(java.lang.String text,
int screenId)
public com.google.gwt.user.client.ui.Hyperlink getHyperlink(java.lang.String text,
java.lang.String screenName,
java.lang.String objectType,
java.lang.String objectId)
public com.google.gwt.user.client.ui.Hyperlink getHyperlink(java.lang.String text,
int screenId,
java.lang.String objectType,
long objectId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||