|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
public abstract class LyWebObject
The LyWebObject class implements root object for all Web components.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
WEB_COMPONENT_ID
|
static java.lang.String |
WEB_CONTROLLER_ID
|
static java.lang.String |
WEB_SESSION_ID
|
Constructor Summary | |
---|---|
LyWebObject(LyComponent viewComponent)
Constructs abstract graphical component. |
Method Summary | |
---|---|
void |
addFileScript(java.lang.String fileName)
Add an external Javascript file to the view manager scripts. |
static java.lang.String |
decodeUrl(java.lang.String url)
Encode an URL by replacing unauthorized characters. |
static boolean |
displayUpPage(LyEnvironment env)
Indicates if an up page is displayed in the web browser. |
static java.lang.String |
encodeUrl(java.lang.String url)
Encode an URL by replacing unauthorized characters. |
static java.lang.String |
encodeUrlXhtml(java.lang.String url)
Encode an URL by replacing unauthorized characters. |
java.lang.String |
expandUrl(java.lang.String text)
Replaces within a given String some $properties$ found in the system environment. |
void |
free()
Free resources allocated to this component. |
java.lang.String |
getDisabledImageUrl(java.lang.String key)
Retrieves a disabled image url from the application environment. |
int |
getFontSize(java.lang.String key)
Gets font corresponding to the given key. |
java.lang.String |
getFontString(java.lang.String key)
Gets font description. |
java.lang.String |
getFontString(java.lang.String key,
boolean color)
Gets font description. |
java.lang.String |
getFontString(java.lang.String key,
java.lang.String color)
Gets font and color description. |
java.lang.String |
getHexColor(java.lang.String key)
Get hexadecimal color from given key. |
java.lang.String |
getHexColor(java.lang.String key,
java.lang.String defaultKey)
Get hexadecimal color from given key. |
java.lang.String |
getHtmlEntitiesString(java.lang.String label)
Gets encoded HTML string from given string. |
java.lang.String |
getHtmlString(java.lang.String label)
Gets encoded HTML string from given string. |
int[] |
getImageSize(java.lang.String key)
Retrieves the dimensions of an image. |
int[] |
getImageSize(java.lang.String key,
boolean enableLoadImage)
Retrieves the dimensions of an image. |
java.lang.String |
getImageUrl(java.lang.String key)
Retrieves an image url from the application environment. |
java.lang.String |
getJavascriptString(java.lang.String label)
Gets encoded Javascript string from given string. |
java.lang.String |
getLastFrameName()
Return the name of the frame where this object was last generated. |
LyFont |
getLyFont(java.lang.String key)
Gets font corresponding to the given key. |
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] arguments)
Convenient routine to get a formated message with given arguments. |
java.lang.String |
getRootUrl()
Gets root URL. |
static java.lang.String |
getRootURL(LyEnvironment environment)
Get servlet root URL : this is "http://"+local host + LY_APP_DOC rebuild the root Url. |
int |
getScrollHeightForSplitter(LyWebPageWriter pw)
Indicates whether this component needs scrollbars when inserted in a splitter. |
java.lang.String |
getUrl(java.lang.String key)
Retrieves an url from the application environment. |
LyWebViewManager |
getWebViewManager()
Gets web view manager. |
void |
refresh()
Refresh frame containing this web object. |
java.lang.String |
replaceUrl(java.lang.String label,
java.lang.String target,
boolean printMode)
Replace an URL pattern http:// inside the document by href tags. |
java.lang.String |
replaceUrl(java.lang.String label,
java.lang.String target,
boolean printMode,
int maxLength,
java.lang.String fontString)
Replace an URL pattern http:// inside the document by href tags. |
void |
setUpdating(boolean updating)
Indicates if a modification of the component is in process. |
void |
updateRefreshInfo(LyWebPageWriter pw)
Update the refresh info of this object. |
void |
writeJson(java.io.PrintWriter pw,
java.lang.String sessionId)
Generate a webview on a mobile |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.web.LyWebComponent |
---|
writeHtml |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String WEB_COMPONENT_ID
public static final java.lang.String WEB_CONTROLLER_ID
public static final java.lang.String WEB_SESSION_ID
Constructor Detail |
---|
public LyWebObject(LyComponent viewComponent)
viewComponent
- the view componentMethod Detail |
---|
public static java.lang.String encodeUrl(java.lang.String url)
url
- the URL to encode
public static java.lang.String encodeUrlXhtml(java.lang.String url)
url
- the URL to encode
public static java.lang.String decodeUrl(java.lang.String url)
url
- the URL to encode
public static java.lang.String getRootURL(LyEnvironment environment)
environment
- the application environment
public static boolean displayUpPage(LyEnvironment env)
env
- the application environment
public void free()
LyGraphicalObject
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LyGraphicalObject
LyFreeInterface.free()
public final LyWebViewManager getWebViewManager()
public final java.lang.String getHtmlString(java.lang.String label)
label
- the string to encode
LyString.getHtmlString(String)
public final java.lang.String getHtmlEntitiesString(java.lang.String label)
label
- the string to encode
LyString.getHtmlEntitiesString(String)
public final java.lang.String getJavascriptString(java.lang.String label)
label
- the given string
LyString.getJavascriptString(String)
public final LyFont getLyFont(java.lang.String key)
key
- the font key
public final int getFontSize(java.lang.String key)
key
- the font key
public java.lang.String getRootUrl()
getRootURL(LyEnvironment)
public final java.lang.String expandUrl(java.lang.String text)
text
- The original string, before any substitution.
public java.lang.String getUrl(java.lang.String key)
key
- The ressource name (key) of the url
LyEnvironment.getUrl(String)
public final java.lang.String getImageUrl(java.lang.String key)
key
- The ressource name (key) of the image.
LyEnvironment.getImageUrl(String)
public final java.lang.String getDisabledImageUrl(java.lang.String key)
key
- The ressource name (key) of the image.
LyEnvironment.getDisabledImageUrl(String)
public final int[] getImageSize(java.lang.String key)
key
- the key of the image or the path of the image
public final int[] getImageSize(java.lang.String key, boolean enableLoadImage)
key
- the key of the image or the path of the imageenableLoadImage
- indicates wether the application is allowed to load the image
public final java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments)
getMessage
in class LyGraphicalObject
LyEnvironment.getMessage(String, Object[])
public java.lang.String getHexColor(java.lang.String key)
key
- The ressource name (key) of the Color.
public java.lang.String getHexColor(java.lang.String key, java.lang.String defaultKey)
key
- The ressource name (key) of the Color.defaultKey
- The default ressource name (key) to be used if no color was found for
given key
public final java.lang.String getFontString(java.lang.String key)
key
- The ressource name (key) of the Font.
public java.lang.String getFontString(java.lang.String key, boolean color)
key
- The ressource name (key) of the Font.color
- Indicates whether the color for given key must be retrieved.
public java.lang.String getFontString(java.lang.String key, java.lang.String color)
key
- The ressource name (key) of the Font.color
- The ressource name (key) of the Color.
public void updateRefreshInfo(LyWebPageWriter pw)
pw
- the current page writerpublic java.lang.String getLastFrameName()
public void refresh()
public void addFileScript(java.lang.String fileName)
fileName
- the name of the external Javascript filepublic java.lang.String replaceUrl(java.lang.String label, java.lang.String target, boolean printMode)
label
- the label containing URLstarget
- the target frame of the URLprintMode
- indicates if print mode is active
public java.lang.String replaceUrl(java.lang.String label, java.lang.String target, boolean printMode, int maxLength, java.lang.String fontString)
label
- the label containing URLstarget
- the target frame of the URLprintMode
- indicates if print mode is activemaxLength
- indicates the maxLength of the generated linkfontString
- the font property used to display label
public int getScrollHeightForSplitter(LyWebPageWriter pw)
pw
- current page writer
public void setUpdating(boolean updating)
updating
- true if component is being updated, false otherwise.public void writeJson(java.io.PrintWriter pw, java.lang.String sessionId)
pw
- PrintWritersessionId
- the session id
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |