|
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
leon.view.web.LyWebPageWriter
leon.view.web.struts.LyStrutsView
leon.view.web.struts.LyStrutsDialog
public class LyStrutsDialog
This class implements the Dialog object (as described in the dtd) for web viewer.
DIALOG: Dialog Window
A dialog window is, generally, linked to a main window of an application. Unlike the main window,
it contains neither a menu, nor a message bar. Its display can be modal (blocking) or not. This
type of window is generally used to allow a user to interact with an application: input request,
presentation of the results, warning messages, questions, etc.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.web.LyWebPageWriter |
---|
FORCE_AJAX, MAIN_BUFFER |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsDialog(LyDialog dialog)
Constructor. |
Method Summary | |
---|---|
void |
addBeginScript(java.lang.String text,
boolean isFile)
(non-Javadoc). |
void |
addEndScript(java.lang.String text,
boolean isFile)
(non-Javadoc). |
java.lang.String |
getActionUrl()
Method overriden to return the URL to the "Command" struts action path. |
java.lang.String |
getRedirect(java.lang.String frame)
Gets the url for an alternate Web page. |
java.lang.String |
getTarget()
(non-Javadoc). |
boolean |
isFrameSet()
(non-Javadoc). |
void |
preparePage(java.lang.String frame,
java.lang.String targetWindow)
(non-Javadoc). |
void |
setArea(LyArea area)
Sets sub-component area. |
void |
setBackgroundColor(java.lang.String hexColor,
java.lang.String frame)
Set the background color of the page and store the mapping between the color and frame. |
void |
setContent()
Sets the content of the dialog. |
void |
setVisible(boolean status)
Sets the visibility status of this component. |
void |
writeBeginPage(java.io.Writer pw,
java.lang.String frame)
Writes the beginning of a HTML page (head, scripts and open the body). |
void |
writeBeginScripts(java.io.Writer pw,
java.lang.String frame)
Writes the begin scripts of the given frame. |
void |
writeEndPage(java.io.Writer pw,
java.lang.String frame)
Writes the end of HTML page. |
void |
writeEndScripts(java.io.Writer pw,
java.lang.String frame)
Writes the end scripts of the given frame. |
void |
writePageContent(java.io.Writer pw,
java.lang.String frame)
Writes the page content of the frame and the given writer. |
Methods inherited from class leon.view.web.struts.LyStrutsView |
---|
getArea, getBuffer, getPageWriters, getView, setForceReloadState, setLabel, setNoFrames, setPrintMode, writeArea, writeHtml |
Methods inherited from class leon.view.web.LyWebObject |
---|
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson |
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.graphic.LyGraphicalDialog |
---|
setLabel |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyStrutsDialog(LyDialog dialog)
dialog
- the dialog componentMethod Detail |
---|
public void preparePage(java.lang.String frame, java.lang.String targetWindow)
LyWebPageWriter
preparePage
in class LyWebPageWriter
LyWebPageWriter.preparePage(java.lang.String, java.lang.String)
public void writeBeginPage(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
LyWebPageWriter
writeBeginPage
in class LyWebPageWriter
pw
- the page writerframe
- the frame where the page is written
java.io.IOException
- if something is wrong during page writingpublic void writePageContent(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
LyWebPageWriter
writePageContent
in class LyWebPageWriter
pw
- the page writerframe
- the frame to write
java.io.IOException
public void writeEndPage(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
LyWebPageWriter
writeEndPage
in class LyWebPageWriter
pw
- the page writerframe
- the frame where the page is written
java.io.IOException
- if something is wrong during end page writespublic java.lang.String getActionUrl()
getActionUrl
in class LyWebPageWriter
public void addBeginScript(java.lang.String text, boolean isFile)
LyWebPageWriter
addBeginScript
in class LyWebPageWriter
LyWebPageWriter.addBeginScript(java.lang.String, boolean)
public void addEndScript(java.lang.String text, boolean isFile)
LyWebPageWriter
addEndScript
in class LyWebPageWriter
LyWebPageWriter.addEndScript(java.lang.String, boolean)
public java.lang.String getRedirect(java.lang.String frame)
LyWebPageWriter
getRedirect
in class LyWebPageWriter
frame
- the frame to redirect
public java.lang.String getTarget()
LyWebPageWriter
getTarget
in class LyWebPageWriter
LyWebPageWriter.getTarget()
public boolean isFrameSet()
LyWebPageWriter
isFrameSet
in class LyWebPageWriter
LyWebPageWriter.isFrameSet()
public void setBackgroundColor(java.lang.String hexColor, java.lang.String frame)
LyWebPageWriter
setBackgroundColor
in class LyWebPageWriter
hexColor
- the string that represents the hexadecimal code for the colorframe
- the frame to associate to this background colorLyWebPageWriter.getBackgroundColor(String)
public void setContent()
public void setVisible(boolean status)
LySetVisibleInterface
setVisible
in interface LySetVisibleInterface
setVisible
in class LyWebPageWriter
status
- new visibility status, if true the component will be shown, if false it will be
hidenpublic void setArea(LyArea area)
LyGraphicalDialog
setArea
in interface LyGraphicalDialog
area
- New value of areapublic void writeBeginScripts(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
LyWebPageWriter
writeBeginScripts
in class LyWebPageWriter
pw
- the page writerframe
- the wrame
java.io.IOException
LyWebPageWriter.getBeginScriptsAsHtml(String)
public void writeEndScripts(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
LyWebPageWriter
writeEndScripts
in class LyWebPageWriter
pw
- the page writerframe
- the wrame
java.io.IOException
LyWebPageWriter.getEndScriptsAsHtml(String)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |