public class FireWebApplication extends Element
Constructor and Description |
---|
FireWebApplication() |
Modifier and Type | Method and Description |
---|---|
FireWebApplication |
addHeadElement(HeadElement element)
Adds element to <head> if not exists on the list.
|
FireWebApplication |
assignApplicationTitle(java.lang.String title)
Sets application title without calling script.
|
java.lang.String |
getApplicationTitle() |
java.lang.String[] |
getBundleNames()
Bundle names annotated at application.
|
java.lang.String |
getCharset()
Charset from servlet definition
|
java.lang.String |
getContextPath() |
long |
getCreationTime()
Instance creation time.
|
java.util.List<HeadElement> |
getHeadElements()
List elements of <head>.
|
long |
getLastAccessedTime()
Session last accessed time.
|
java.util.Locale |
getLocale()
Gets current application locale.
|
long |
getMaxInactiveInterval()
Session inactive live time in seconds.
|
java.lang.String |
getOnBeforeAfterEvent() |
java.lang.String |
getOnSessionClosed() |
java.lang.String |
getResource(java.lang.String key)
Find resource string in bundles defined by
Constants.APPLICATION_RESOURCE_BUNDLE context parameter. |
java.lang.Object |
getResourceObject(java.lang.String key)
Find resource object in bundles defined by
Constants.APPLICATION_RESOURCE_BUNDLE context parameter. |
java.lang.String |
getSessionId() |
javax.websocket.Session |
getWebSocketSession()
Current application's instance of WebSocket.
|
FireWebApplication |
insertHeadElement(HeadElement element,
int index)
Insert element to <head> at given index if not exists on the list.
|
boolean |
isDebug()
If application is in debug mode.
|
boolean |
isSessionExpired()
Checks if session expired.
|
FireWebApplication |
quit()
Removes application from server session and closes websocket.
|
FireWebApplication |
refreshView()
Refresh application view.
|
FireWebApplication |
removeHeadElement(HeadElement element)
Removes element from <head>.
|
FireWebApplication |
setApplicationTitle(java.lang.String title)
Sets browser window title and sends JavaScript "document.title=..."
|
FireWebApplication |
setBookmark(java.lang.String bookmark)
Add bookmark to browser (client) history by calling FW.bookmarks.set
script.
|
FireWebApplication |
setLocale(java.util.Locale locale)
Sets current application locale and fire event
OnLocaleChanged on
view. |
FireWebApplication |
setOnBeforeAfterEvent(java.lang.String onBeforeAfterEvent)
Java Script function name or function definition which is calling by FW
JS engine on browser before event processing in order to eg prevent click
on any active element by displaying translucent element all over whole
document.
|
FireWebApplication |
setOnSessionClosed(java.lang.String onSessionClosed)
Java Script function name or function definition which is calling by FW
JS engine on browser when server session closed.
|
add, addAllDropTargets, addDropTarget, addStyleClass, alert, assignText, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, findElement, findEventOptions, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getContenteditableValue, getDir, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyle, getStyleClass, getStyles, getTabIndex, getText, getTitle, getTypeEvents, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isListening, listenerOff, listenerOn, print, prompt, remove, remove, removeDropTarget, removeEventOptions, removeParent, removeStyle, removeStyleClass, removeStyles, replace, replaceStyleClass, setChangeChildrenSet, setContenteditable, setDir, setDrawn, setEventOptions, setLang, setParent, setStyle, setStyleClass, setStyles, setTabIndex, setText, setTitle
public final java.util.List<HeadElement> getHeadElements()
public final FireWebApplication quit()
public final java.lang.String getSessionId()
public final java.lang.String getContextPath()
public FireWebApplication refreshView()
public javax.websocket.Session getWebSocketSession()
public java.lang.String[] getBundleNames()
public java.lang.String getCharset()
public boolean isDebug()
public long getCreationTime()
public long getLastAccessedTime()
public long getMaxInactiveInterval()
public boolean isSessionExpired()
public FireWebApplication addHeadElement(HeadElement element)
element
- StyleTag element represents the stylepublic FireWebApplication insertHeadElement(HeadElement element, int index)
element
- StyleTag element represents the styleindex
- At which list element to insertpublic FireWebApplication removeHeadElement(HeadElement element)
element
- to remove.public FireWebApplication setBookmark(java.lang.String bookmark)
bookmark
- value will be sent to browserpublic java.lang.String getApplicationTitle()
public FireWebApplication assignApplicationTitle(java.lang.String title)
title
- String with application titlepublic FireWebApplication setApplicationTitle(java.lang.String title)
title
- the application title to setpublic java.util.Locale getLocale()
public FireWebApplication setLocale(java.util.Locale locale)
OnLocaleChanged
on
view. Event contains previous locale.locale
- the locale to setpublic FireWebApplication setOnSessionClosed(java.lang.String onSessionClosed)
onSessionClosed
- String JS scriptpublic java.lang.String getOnSessionClosed()
public FireWebApplication setOnBeforeAfterEvent(java.lang.String onBeforeAfterEvent)
onBeforeAfterEvent
- String JS scriptpublic java.lang.String getOnBeforeAfterEvent()
public java.lang.String getResource(java.lang.String key)
Constants.APPLICATION_RESOURCE_BUNDLE
context parameter.key
- resource bundle string to findjava.util.MissingResourceException
- if not found resource by the keypublic java.lang.Object getResourceObject(java.lang.String key)
Constants.APPLICATION_RESOURCE_BUNDLE
context parameter.key
- resource bundle string to findjava.util.MissingResourceException
- if not found resource by the key