|
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.LyViewManager
leon.view.web.LyWebViewManager
public abstract class LyWebViewManager
Communication control layer --> View Will implement remote update notifications.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
java.lang.String |
_mobileStartUrl
Mobile component web view URL. |
java.lang.String |
_root_url
localhost root URL. |
static int |
BROWSER_CHROME
The Chrome browser. |
static java.lang.String |
BROWSER_CHROME_ID
The Chrome browser identifier. |
static int |
BROWSER_FIREFOX
The Firefox browser. |
static java.lang.String |
BROWSER_FIREFOX_ID
The Firefox browser identifier. |
static int |
BROWSER_MSIE
The MicroSoft Internet Explorer browser. |
static java.lang.String |
BROWSER_MSIE_ID
The MicroSoft Internet Explorer browser identifier. |
static int |
BROWSER_NETSCAPE
The Netscape browser. |
static java.lang.String |
BROWSER_NETSCAPE_ID
The Netscape browser identifier. |
static int |
BROWSER_OPERA
The Opera browser. |
static java.lang.String |
BROWSER_OPERA_ID
The Opera browser identifier. |
static int |
BROWSER_OTHER
Unspecified browser. |
static int |
CACHED_IMAGE_MAX_SIZE
Maximum size of the images that may be cached (in pixels²). |
static int |
DEFAULT_POPUP_HEIGHT
|
static int |
DEFAULT_POPUP_WIDTH
Indicates the size (in pixel) used for a new window if nothing is specified for width or height. |
static boolean |
OPTIMIZE_TABLE_GENERATION
Indicates whether the TABLE HTML tags must be optimized. |
static java.lang.String |
PARAMETERS
Separator used within a message text to introduce parameters. |
static boolean |
REGISTER_PAGE_WRITERS
Indicates whether page writers must be registered on view managers. |
static java.lang.String |
SEP_PW_ID
The page writer id separator : used within a frame name to introduce the page writer identifier. |
static short |
SHOW_LOCATION_PARAMETER_DIRECTORIES
For show location : indicates whether directories must be set in newly opened window. |
static short |
SHOW_LOCATION_PARAMETER_LOCATION
For show location : indicates whether location must be set in newly opened window. |
static short |
SHOW_LOCATION_PARAMETER_MENUBAR
For show location : indicates whether menubar must be set in newly opened window. |
static short |
SHOW_LOCATION_PARAMETER_NAME
For show location : indicates the name of the newly opened window. |
static short |
SHOW_LOCATION_PARAMETER_RESIZABLE
For show location : indicates whether newly opened window must be resizable. |
static short |
SHOW_LOCATION_PARAMETER_SCROLLBARS
For show location : indicates whether scrollbars must be set in newly opened window. |
static short |
SHOW_LOCATION_PARAMETER_STATUSBAR
For show location : indicates whether statusbar must be set in newly opened window. |
static short |
SHOW_LOCATION_PARAMETER_TOOLBAR
For show location : indicates whether toolbar must be set in newly opened window. |
static int |
TYPE_ALERT
The alert message type. |
static int |
TYPE_LOCATION
The location in current window message type. |
static int |
TYPE_LOCATION_NEW_WINDOW
The location in new window message type. |
static int |
TYPE_NO
The type of a message that have no type. |
static int |
TYPE_QUESTION
The question message type. |
static int |
TYPE_SHOW_FILE
The show file message type. |
static boolean |
WEB_FILE_NEW_WINDOW
Indicates that we open a new window when there is a file to show. |
Constructor Summary | |
---|---|
LyWebViewManager(LyEnvironment environment)
Constructor. |
Method Summary | |
---|---|
void |
activateAdditionalRefreshScriptsBuffer(boolean activate)
Enables or disables the use of a temporary buffer for additional refresh scripts. |
void |
addAdditionalRefreshScripts(java.lang.String script)
Adds the given additional refresh script to the _additionalRefreshScripts list. |
void |
addAdditionalRefreshScripts(java.lang.String script,
boolean insertEnd)
Adds the given additional refresh script to the _additionalRefreshScripts list. |
void |
addNewWindowScript(java.lang.String script)
|
void |
addPageWriter(LyWebPageWriter page)
Adds the given PageWriter in the known page writer list. |
void |
addPopupViewMapping(java.lang.String frame,
java.lang.String view)
Adds the mapping between the given frame and its given popup view. |
void |
addRefreshingView(LyGetRefreshInterface viewComp)
Adds a refreshing view in the list : this enables auto-refresh mode. |
void |
addReloadFrame(java.lang.String frame)
Adds the given frame to the list of reload frames . |
void |
addReloadFrame(java.lang.String frame,
java.lang.String pageWriterId)
Adds the given frame to the list of reload frames . |
LyAnswerInterface |
answerMessage(java.lang.String infoId,
boolean result)
Answer the interface by calling the answer associated to message associated to the given ID. |
LyAnswerInterface |
answerMessage(java.lang.String infoId,
short result)
Answer the interface by calling the answer associated to message associated to the given ID. |
void |
askQuestion(LyComponent source,
java.lang.String message,
LyQuestionAnswerInterface client,
java.lang.Object clientData)
Ask a question to the user. |
LyViewComponent |
buildInternalView(LyComponent component)
Build internal view. |
LyWebDecoration |
buildWebDecoration(LyEnvironment environment)
Builds an instance of LyWebDecoration corresponding to current view manager. |
void |
clearAdditionalRefreshScripts()
Clear the list of additional refresh scripts _additionalRefreshScripts . |
void |
clearRefreshingView(LyGetRefreshInterface viewComp)
Removes the given view from the _refreshingViews list. |
void |
clearReloadFrame(java.lang.String frame)
Removes a frames from the _reloadFrames list. |
void |
clearReloadFrames()
Clears the list of frames which need to be reloaded. |
void |
clearTemporaryResources()
Clear all the temporary resources used by the viewManager Implemented in subclasses. |
boolean |
encodeImage(java.lang.Object image,
java.lang.String imageDir,
java.lang.String imageFile)
Encodes an image to JPEG format. |
static java.lang.String |
encodeString(java.lang.String message)
Encodes a String to enable displaying it in an alert message box. |
void |
exit(int code)
To exit an application. |
boolean |
forceScrolling()
Indicates if IFRAME tags must contain the scrolling attribute set. |
void |
free()
Free the view manager. |
java.lang.String |
generateScriptsInclusion()
Generates a string containing all the Javascript files inclusion. |
java.util.Vector<java.lang.String> |
getAdditionalRefreshScripts()
Gets the list of additional refresh scripts _additionalRefreshScripts . |
java.util.Vector<java.lang.String> |
getAdditionalRefreshScripts(boolean clearScripts)
Gets the list of additional refresh scripts _additionalRefreshScripts . |
int |
getBrowser()
Gets the browser type code. |
double |
getBrowserVersion()
Gets the browser version. |
boolean |
getClose()
Gets the current thread close request status from the _closeRequests list. |
java.lang.String |
getCurrentWindowName()
Accessor to the target popup window name if using popup.This is stored on a per-thread basis Default mplementation always return null (used for web modes). |
LyWebDecoration |
getDecoration()
Gets the current decoration page. |
java.lang.String |
getDefaultPageResource()
Returns the name of the resource to be used for default page. |
LyViewController |
getLastPopupViewController()
Returns the view controller that was last displayed in the popup view. |
java.lang.String |
getMainTargetFrame()
Gets the main target frame suffix. |
java.lang.String |
getMessage()
Gets the message associated to the current thread. |
java.lang.String |
getMessage(boolean anyThread)
Gets the message associated to the current thread. |
java.lang.String |
getMessage(boolean anyThread,
boolean ignoreSentMessages)
Gets the message associated to the current thread. |
java.lang.String |
getMessageAnswerURL()
Returns the URL that must be used to answer messages. |
java.lang.String |
getMobileStartURL()
Gets the component web view URL. |
java.util.Vector<java.lang.String> |
getNewWindowScripts()
|
LyWebPageWriter |
getPageWriter()
Gets the pageWriter for current context (Thread). |
LyWebPageWriter |
getPageWriter(java.lang.String id)
Gets the PageWriter associated to the given id. |
java.lang.String |
getPopupViewMapping(java.lang.String frame)
Gets the popup view mapped to the given frame. |
java.util.Properties |
getPropertiesFromContext(java.lang.String prefix)
Accessor to the properties file or parameter if specified in constructor. |
int |
getRefreshRate()
Gets the refresh rate for the auto refresh views. |
java.util.Vector<java.lang.String> |
getReloadFrames()
Gets the list of frames which need to be refreshed. |
java.lang.String |
getRootURL()
Gets servlet root URL : this is "http://"+local host + LY_APP_DOC. |
java.lang.String |
getScriptsDir()
Returns the directory that contains the Javascript files. |
java.lang.String |
getScriptsDocDir()
Returns the path of the directory that contains the Javascript files. |
java.lang.String |
getTargetCode()
Return the target code used in multi-windows mode. |
java.lang.String |
getTemporaryLocation()
Return the temporary directory used to store temporary resources but dependant from the viewer type (for ex: url / partial url for web). |
void |
hideView(LyWebPageWriter pageWriter)
Hides the view wrote in the given page writer. |
boolean |
isBrowserSupported()
Indicates if current browser is supported with the version of Leonardi. |
boolean |
isMultipleSession()
Indicates wether this view manager handles multiple user sessions or not. |
boolean |
isMultiSession()
Checks whether this manager handles multiple session. |
boolean |
isReload()
Gets the reload mode status of the view. |
LyAnswerInterface |
messageActionPerformed(java.lang.Object infoId,
int cmdResult)
Method used to call back the listener of the specified message window for the specified result. |
boolean |
needsUpdate()
Indicates whether the client needs an update. |
void |
removeMessageAnswer(java.lang.String infoId)
Removes the message answer associated to the given ID. |
void |
removePageWriter(LyWebPageWriter page)
Removes the given PageWriter from the known page writer list. |
void |
setBrowser(java.lang.String userAgent)
Sets the browser type and eventually properties that are not supported by this browser. |
void |
setClose(LyWebPageWriter pageWriter,
boolean close)
If the current page writer is not the given page writer, if close=true and if the page writer window is a pop up window then adds a script to hide the pop up view Else if close=true and if the given page writer's window is null then adds the current target frame to the list of frame to reload and adds the current thread to associations between thread and close requests. |
void |
setCurrentWindowName(java.lang.String name)
Accessor to the target popup window name if using popup.This is stored on a per-thread basis Default mplementation always return null (used for web modes). |
void |
setDecoration(LyWebDecoration deco)
Sets the decoration page. |
void |
setMessage(java.lang.String message)
Adds the given message to the list of messages identified by their thread. |
void |
setMessage(java.lang.String message,
java.lang.String title,
java.lang.String icon,
int type,
java.lang.String bgColor,
java.util.BitSet commands,
java.lang.String infoId,
java.util.Hashtable<java.lang.Short,java.lang.String> parameters)
Adds the given message to the list of messages identified by their thread or remove it if message=null. |
void |
setMessageAnswerUrl(java.lang.String answerUrl)
This method looks for the current message and sets the URL for the answer to the question. |
void |
setMobileStartURL(java.lang.String mobileStartUrl)
Sets component web view URL. |
void |
setPageWriter(LyWebPageWriter pageWriter)
Sets the pageWriter for current context (Thread). |
void |
setReload(boolean reload)
Sets the reload status with the given value. |
void |
setRootURL(java.lang.String rootUrl)
Sets servlet root URL. |
void |
setTargetCode(java.lang.String targetCode)
Sets the target code used in multi-windows mode. |
void |
setWaiting(boolean status)
Sets the Waiting status for all view of the application. |
void |
showError(LyComponent source,
java.lang.String message)
Shows a warning message to the user. |
void |
showFile(LyComponent source,
java.lang.String location)
Shows a file to the user. |
void |
showLocation(LyComponent source,
java.lang.String location,
boolean newWindow)
Shows a location to the user. |
void |
showLocation(LyComponent source,
java.lang.String location,
boolean newWindow,
java.util.Hashtable<java.lang.Short,java.lang.String> parameters)
Shows a location to the user. |
void |
showMessage(LyComponent source,
java.lang.String title,
java.lang.String icon,
java.lang.String message,
java.util.BitSet commands,
LyMessageAnswerInterface client,
java.lang.Object clientData)
Show a message to the user and return the selection code. |
void |
showPDFPreview(LyComponent source,
java.lang.String location)
Shows a PDF file to the user. |
void |
showView(LyWebPageWriter pageWriter)
Shows the view wrote in the given page writer. |
void |
showWarning(LyComponent source,
java.lang.String message)
Shows a warning message to the user. |
void |
updateControllersStackList(java.util.Hashtable<java.lang.String,java.util.Stack<LyViewController>> controllersStackList)
Updates the _controllerStackList parameter with the count of controllers from the controllersStackList parameter. controllersStackList must contain names of controller stacks as keys and stack of controllers as values. |
boolean |
useCacheForImage(java.lang.String path,
java.lang.Object image)
Indicates whether given image may be cached. |
boolean |
usePopupView()
Indicates if popup view is allowed. |
boolean |
writeDivs()
Indicates if DIV tags may be written. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final int TYPE_NO
public static final int TYPE_ALERT
TYPE_NO
,
Constant Field Valuespublic static final int TYPE_QUESTION
TYPE_NO
,
Constant Field Valuespublic static final int TYPE_LOCATION
TYPE_NO
,
Constant Field Valuespublic static final int TYPE_LOCATION_NEW_WINDOW
TYPE_NO
,
Constant Field Valuespublic static final int TYPE_SHOW_FILE
TYPE_NO
,
Constant Field Valuespublic static final int BROWSER_MSIE
BROWSER_OTHER
,
Constant Field Valuespublic static final int BROWSER_NETSCAPE
BROWSER_OTHER
,
Constant Field Valuespublic static final int BROWSER_OPERA
BROWSER_OTHER
,
Constant Field Valuespublic static final int BROWSER_OTHER
public static final int BROWSER_FIREFOX
BROWSER_OTHER
,
Constant Field Valuespublic static final int BROWSER_CHROME
BROWSER_OTHER
,
Constant Field Valuespublic static final java.lang.String BROWSER_MSIE_ID
public static final java.lang.String BROWSER_FIREFOX_ID
public static final java.lang.String BROWSER_CHROME_ID
public static final java.lang.String BROWSER_NETSCAPE_ID
public static final java.lang.String BROWSER_OPERA_ID
public static final short SHOW_LOCATION_PARAMETER_NAME
public static final short SHOW_LOCATION_PARAMETER_SCROLLBARS
public static final short SHOW_LOCATION_PARAMETER_RESIZABLE
public static final short SHOW_LOCATION_PARAMETER_TOOLBAR
public static final short SHOW_LOCATION_PARAMETER_STATUSBAR
public static final short SHOW_LOCATION_PARAMETER_MENUBAR
public static final short SHOW_LOCATION_PARAMETER_DIRECTORIES
public static final short SHOW_LOCATION_PARAMETER_LOCATION
public static final java.lang.String SEP_PW_ID
public static final java.lang.String PARAMETERS
public static boolean REGISTER_PAGE_WRITERS
public static boolean OPTIMIZE_TABLE_GENERATION
public static int DEFAULT_POPUP_WIDTH
public static int DEFAULT_POPUP_HEIGHT
public static boolean WEB_FILE_NEW_WINDOW
public static int CACHED_IMAGE_MAX_SIZE
public java.lang.String _root_url
public java.lang.String _mobileStartUrl
Constructor Detail |
---|
public LyWebViewManager(LyEnvironment environment)
environment
- the application environmentMethod Detail |
---|
public void free()
LyViewManager
free
in interface LyViewManagerInterface
free
in class LyViewManager
public LyWebDecoration buildWebDecoration(LyEnvironment environment)
environment
- the environment of the web decoration.
public LyViewComponent buildInternalView(LyComponent component)
LyViewManager
buildInternalView
in class LyViewManager
public void clearTemporaryResources()
LyViewManager
clearTemporaryResources
in interface LyViewManagerInterface
clearTemporaryResources
in class LyViewManager
public java.lang.String getScriptsDir()
public java.lang.String getScriptsDocDir()
public java.lang.String getTemporaryLocation()
LyViewManager
getTemporaryLocation
in interface LyViewManagerInterface
getTemporaryLocation
in class LyViewManager
public java.lang.String getDefaultPageResource()
public java.lang.String generateScriptsInclusion()
public void showView(LyWebPageWriter pageWriter)
pageWriter
- the page writersetPageWriter(LyWebPageWriter)
public void hideView(LyWebPageWriter pageWriter)
pageWriter
- the page writer containing view to hidepublic void exit(int code)
exit
in interface LyViewManagerInterface
exit
in class LyViewManager
code
- exit code of the application.public void setWaiting(boolean status)
setWaiting
in class LyViewManager
public void showWarning(LyComponent source, java.lang.String message)
LyViewManager
showWarning
in class LyViewManager
source
- view element which raises the warningmessage
- warning messagepublic void showError(LyComponent source, java.lang.String message)
LyViewManager
showError
in class LyViewManager
source
- view element which raises the errormessage
- error messagepublic void askQuestion(LyComponent source, java.lang.String message, LyQuestionAnswerInterface client, java.lang.Object clientData)
askQuestion
in class LyViewManager
source
- view element which asks the questionmessage
- text of the questionclient
- registred to receive the response.clientData
- freely set data which will be returned with the response.LyViewManager.showWarning(LyComponent, String)
public void showFile(LyComponent source, java.lang.String location)
LyViewManager
showFile
in class LyViewManager
source
- view element which raises the locationlocation
- locationpublic void showLocation(LyComponent source, java.lang.String location, boolean newWindow)
LyViewManager
showLocation
in class LyViewManager
source
- view element which raises the locationlocation
- locationnewWindow
- indicates whether a new window must be openedpublic void showLocation(LyComponent source, java.lang.String location, boolean newWindow, java.util.Hashtable<java.lang.Short,java.lang.String> parameters)
LyViewManager
showLocation
in class LyViewManager
source
- view element which raises the locationlocation
- locationnewWindow
- indicates whether a new window must be openedparameters
- list of parameterspublic java.util.Vector<java.lang.String> getNewWindowScripts()
public void addNewWindowScript(java.lang.String script)
public void showPDFPreview(LyComponent source, java.lang.String location)
LyViewManager
showPDFPreview
in class LyViewManager
source
- view element which raises the locationlocation
- locationpublic void showMessage(LyComponent source, java.lang.String title, java.lang.String icon, java.lang.String message, java.util.BitSet commands, LyMessageAnswerInterface client, java.lang.Object clientData)
LyViewManager
showMessage
in class LyViewManager
source
- view element which asks the questiontitle
- title of the message windowicon
- icon shown in the message windowmessage
- text of the messagecommands
- bitset which contains COMMAND_xxx valuesclient
- registred to receive the response.clientData
- freely set data which will be returned with the response.public void removeMessageAnswer(java.lang.String infoId)
infoId
- the id of the message answer to removepublic java.lang.String getMessageAnswerURL()
public void setPageWriter(LyWebPageWriter pageWriter)
pageWriter
- the pagewriter we are currently working on when generating this pagegetPageWriter()
public LyWebPageWriter getPageWriter()
setPageWriter(LyWebPageWriter)
public void addPageWriter(LyWebPageWriter page)
page
- the new PageWriterpublic void removePageWriter(LyWebPageWriter page)
page
- the PageWriterwhich should be removedpublic LyWebPageWriter getPageWriter(java.lang.String id)
id
- identifier of the PageWriter
setPageWriter(LyWebPageWriter)
public void setClose(LyWebPageWriter pageWriter, boolean close)
close=true
close=true
pageWriter
- the page writer to close.close
- if true, indicates that the page of the page writer has to be closedgetClose()
public boolean getClose()
_closeRequests
list. If the
current thread is found in the list, the remove it.
_closeRequests
list associated to
the value true
, false otherwisesetClose(LyWebPageWriter, boolean)
public void setReload(boolean reload)
reload
- the status of the reload modepublic boolean isReload()
public void setMessage(java.lang.String message)
message
- the message to addwith values (message, NO_TYPE, null)
,
getMessage()
public void setMessage(java.lang.String message, java.lang.String title, java.lang.String icon, int type, java.lang.String bgColor, java.util.BitSet commands, java.lang.String infoId, java.util.Hashtable<java.lang.Short,java.lang.String> parameters)
message
- the content of the message to add. If null the remove the message from the
list.title
- title of the message windowicon
- icon shown in the message windowtype
- the type of the message from the values
commands
- bitset which contains COMMAND_xxx valuesbgColor
- background color of the message windowinfoId
- id of the info answer that must be called when answer is givengetMessage()
public void setMessageAnswerUrl(java.lang.String answerUrl)
TYPE_QUESTION
.
answerUrl
- The absolute URL to the server page (servlet or JSP) that manages the answer
of the question.public java.lang.String getMessage()
setMessage(String)
,
#setMessage(String, int, String)
public java.lang.String getMessage(boolean anyThread)
anyThread
- take the first available message (from any thread) (used by hidden frame)
setMessage(String)
,
#setMessage(String, int, String)
public java.lang.String getMessage(boolean anyThread, boolean ignoreSentMessages)
anyThread
- take the first available message (from any thread) (used by hidden frame)ignoreSentMessages
- indicates whether messages that were already sent must be retrieved
setMessage(String)
,
#setMessage(String, int, String)
public LyAnswerInterface answerMessage(java.lang.String infoId, boolean result)
infoId
- the id of the answer messageresult
- true if the user chossed "yes" or "ok", false otherwise
public LyAnswerInterface answerMessage(java.lang.String infoId, short result)
infoId
- the id of the answer messageresult
- true if the user chossed "yes" or "ok", false otherwise
public static java.lang.String encodeString(java.lang.String message)
message
- the message to encode
public java.lang.String getMainTargetFrame()
public final java.lang.String getRootURL()
getRootURL
in interface LyViewManagerInterface
getRootURL
in class LyViewManager
setRootURL(String)
public void setRootURL(java.lang.String rootUrl)
rootUrl
- the new root URLgetRootURL()
public final java.lang.String getMobileStartURL()
setMobileStartURL(String)
public void setMobileStartURL(java.lang.String mobileStartUrl)
mobileStartUrl
- the new component web view URLgetMobileStartURL()
public void setTargetCode(java.lang.String targetCode)
code
- the new codepublic java.lang.String getTargetCode()
public void addReloadFrame(java.lang.String frame)
reload frames
.
frame
- a frame which will need to be refreshed next timewhere page writer id = null
public void addReloadFrame(java.lang.String frame, java.lang.String pageWriterId)
reload frames
.
frame
- a frame which will need to be refreshed next timepageWriterId
- optional pagewriter identifier we check before refreshing.public void addPopupViewMapping(java.lang.String frame, java.lang.String view)
frame
- the frame to map to the viewview
- the view to map to the framepublic java.lang.String getPopupViewMapping(java.lang.String frame)
frame
- the frame
public void clearReloadFrame(java.lang.String frame)
_reloadFrames
list.
frame
- a frame which will not need to be refreshed next timepublic java.util.Vector<java.lang.String> getReloadFrames()
public void clearReloadFrames()
public boolean needsUpdate()
public void addRefreshingView(LyGetRefreshInterface viewComp)
viewComp
- the refreshed viewpublic void clearRefreshingView(LyGetRefreshInterface viewComp)
_refreshingViews
list.
viewComp
- the refreshed view to remove from the listpublic int getRefreshRate()
public boolean writeDivs()
public boolean usePopupView()
public boolean forceScrolling()
public void setBrowser(java.lang.String userAgent)
userAgent
- the userAgent string send by the browser.getBrowser()
public int getBrowser()
setBrowser(String)
public double getBrowserVersion()
public boolean isMultipleSession()
public void updateControllersStackList(java.util.Hashtable<java.lang.String,java.util.Stack<LyViewController>> controllersStackList)
updateControllersStackList
in class LyViewManager
controllersStackList
- public LyViewController getLastPopupViewController()
public boolean isBrowserSupported()
public void setCurrentWindowName(java.lang.String name)
LyViewManager
setCurrentWindowName
in class LyViewManager
public java.lang.String getCurrentWindowName()
LyViewManager
getCurrentWindowName
in class LyViewManager
public boolean encodeImage(java.lang.Object image, java.lang.String imageDir, java.lang.String imageFile)
LyViewManager
encodeImage
in class LyViewManager
image
- the image to encodeimageDir
- temporary directory (optional)imageFile
- the JPEG File
public boolean useCacheForImage(java.lang.String path, java.lang.Object image)
useCacheForImage
in interface LyViewManagerInterface
useCacheForImage
in class LyViewManager
path
- The path of image that may be cached.image
- The image that may be cached.
public java.util.Vector<java.lang.String> getAdditionalRefreshScripts()
_additionalRefreshScripts
.
public java.util.Vector<java.lang.String> getAdditionalRefreshScripts(boolean clearScripts)
_additionalRefreshScripts
.
clearScripts
- indicates whether additional refresh scripts must be cleared.
public void clearAdditionalRefreshScripts()
_additionalRefreshScripts
.
public final void addAdditionalRefreshScripts(java.lang.String script)
_additionalRefreshScripts
list.
script
- the HTML representation of the script to addpublic void addAdditionalRefreshScripts(java.lang.String script, boolean insertEnd)
_additionalRefreshScripts
list.
script
- the HTML representation of the script to addinsertEnd
- indicates whether the script must be inserted at the end of the listpublic void activateAdditionalRefreshScriptsBuffer(boolean activate)
activate
- true if buffer must be activated, false otherwise.public LyWebDecoration getDecoration()
setDecoration(LyWebDecoration)
public void setDecoration(LyWebDecoration deco)
deco
- The new decoration.getDecoration()
public LyAnswerInterface messageActionPerformed(java.lang.Object infoId, int cmdResult)
messageActionPerformed
in class LyViewManager
cmdResult
- the comand result : 1 if the user chose 'YES' or 'OK', 0 otherwiseinfoId
- the message info Id (of type String
answerMessage(String, boolean)
public boolean isMultiSession()
true
.
isMultiSession
in interface LyViewManagerInterface
isMultiSession
in class LyViewManager
public java.util.Properties getPropertiesFromContext(java.lang.String prefix)
getPropertiesFromContext
in interface LyViewManagerInterface
getPropertiesFromContext
in class LyViewManager
prefix
- Prefix used for properties files name.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |