|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.gwt.api.client.app.XWikiGWTDefaultApp
public class XWikiGWTDefaultApp
See the NOTICE file distributed with this work for additional information regarding copyright ownership.
This is free software;you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation;either version2.1of the License,or(at your option)any later version. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this software;if not,write to the Free Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA 02110-1301 USA,or see the FSF site:http://www.fsf.org.
| Field Summary | |
|---|---|
protected LoadingDialog |
loadingDialog
|
protected java.lang.String |
name
|
protected XWikiServiceAsync |
serviceInstance
|
protected Translator |
translator
|
| Constructor Summary | |
|---|---|
XWikiGWTDefaultApp()
|
|
| Method Summary | |
|---|---|
void |
checkTranslator(com.google.gwt.user.client.rpc.AsyncCallback cback)
Check if translator is loaded. |
void |
finishLoading()
Closes the loading box if the number of calls to finish are equal to the number of call to startLoading |
static int |
getAbsoluteTop(com.google.gwt.user.client.ui.Widget widget)
|
java.lang.String |
getCSSPrefix()
Returns the css prefix of the app |
java.lang.String |
getLocale()
Returns the locale of the app |
java.lang.String |
getName()
Returns the name of the app |
java.lang.String |
getParam(java.lang.String key)
|
java.lang.String |
getParam(java.lang.String key,
java.lang.String defaultValue)
|
int |
getParamAsInt(java.lang.String key)
|
int |
getParamAsInt(java.lang.String key,
int defaultValue)
|
static java.lang.String |
getProperty(java.lang.String name)
Native method in JavaScript to access gwt:property |
java.lang.String |
getSkin()
Allows to acces the name of the skin provided in gwt params |
java.lang.String |
getSkinBaseURL()
Allows to access the skin base url provided in gwt params |
java.lang.String |
getSkinFile(java.lang.String file)
Constructs a skin file URL |
java.lang.String |
getTranslation(java.lang.String key)
Provides a translated string |
java.lang.String |
getTranslation(java.lang.String key,
java.lang.String[] args)
Provides a translated string |
java.lang.String |
getTranslationPage()
Allows to access the name of the translations page provided in gwt parameters |
static java.lang.String |
getUserAgent()
|
XWikiServiceAsync |
getXWikiServiceInstance()
Creates an instance of an XWiki Service |
static boolean |
isGecki()
|
static boolean |
isMSIE()
|
static boolean |
isSafari()
|
boolean |
isTranslatorLoaded()
|
void |
onModuleLoad()
|
static void |
setMaxHeight(com.google.gwt.user.client.ui.Widget widget)
|
void |
setName(java.lang.String name)
|
void |
showDialog(java.lang.String message)
|
void |
showDialog(java.lang.String title,
java.lang.String message)
|
void |
showError(java.lang.String text)
|
void |
showError(java.lang.String code,
java.lang.String text)
|
void |
showError(java.lang.Throwable caught)
|
void |
startLoading()
Launches the loading box |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Translator translator
protected LoadingDialog loadingDialog
protected XWikiServiceAsync serviceInstance
protected java.lang.String name
| Constructor Detail |
|---|
public XWikiGWTDefaultApp()
| Method Detail |
|---|
public void onModuleLoad()
public java.lang.String getName()
XWikiGWTApp
getName in interface XWikiGWTApppublic void setName(java.lang.String name)
public static java.lang.String getProperty(java.lang.String name)
public java.lang.String getParam(java.lang.String key)
public java.lang.String getParam(java.lang.String key,
java.lang.String defaultValue)
public int getParamAsInt(java.lang.String key)
public int getParamAsInt(java.lang.String key,
int defaultValue)
public java.lang.String getTranslationPage()
getTranslationPage in interface XWikiGWTApppublic java.lang.String getSkinBaseURL()
public java.lang.String getSkin()
public java.lang.String getTranslation(java.lang.String key)
getTranslation in interface XWikiGWTAppkey -
public java.lang.String getTranslation(java.lang.String key,
java.lang.String[] args)
getTranslation in interface XWikiGWTAppkey -
public XWikiServiceAsync getXWikiServiceInstance()
getXWikiServiceInstance in interface XWikiGWTApppublic java.lang.String getSkinFile(java.lang.String file)
getSkinFile in interface XWikiGWTAppfile -
public void startLoading()
startLoading in interface XWikiGWTApppublic void finishLoading()
finishLoading in interface XWikiGWTApppublic boolean isTranslatorLoaded()
isTranslatorLoaded in interface XWikiGWTApppublic void checkTranslator(com.google.gwt.user.client.rpc.AsyncCallback cback)
cback - Where to call previousStep after the translator is loaded.
public void showDialog(java.lang.String title,
java.lang.String message)
showDialog in interface XWikiGWTApptitle - message - public void showDialog(java.lang.String message)
showDialog in interface XWikiGWTAppmessage - public void showError(java.lang.Throwable caught)
showError in interface XWikiGWTApppublic void showError(java.lang.String text)
showError in interface XWikiGWTApp
public void showError(java.lang.String code,
java.lang.String text)
showError in interface XWikiGWTApppublic java.lang.String getCSSPrefix()
XWikiGWTApp
getCSSPrefix in interface XWikiGWTApppublic static java.lang.String getUserAgent()
public static boolean isMSIE()
public static boolean isGecki()
public static boolean isSafari()
public static int getAbsoluteTop(com.google.gwt.user.client.ui.Widget widget)
public static void setMaxHeight(com.google.gwt.user.client.ui.Widget widget)
public java.lang.String getLocale()
XWikiGWTApp
getLocale in interface XWikiGWTApp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||