LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsDialog

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.LyWebPageWriter
              extended by leon.view.web.struts.LyStrutsView
                  extended by leon.view.web.struts.LyStrutsDialog
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalDialog, LyGraphicalView, LyViewComponent, LyFreeInterface, LySetLabelInterface, LySetVisibleInterface, LyWebComponent

public class LyStrutsDialog
extends LyStrutsView
implements LyGraphicalDialog

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.LyWebPageWriter
addCssScript, addEndScript, append, clearBeginScripts, clearBeginScripts, clearBuffer, clearCssScripts, clearCssScripts, clearEndScripts, clearEndScripts, copyScriptsTo, endComponent, free, getActiveFormId, getActiveName, getAttachmentDirectory, getAttachmentHandler, getBackground, getBackgroundColor, getBeginScriptsAsHtml, getCssFileAsHtml, getCssScriptsAsHtml, getEndScriptsAsHtml, getForceReloadState, getFormId, getFrameName, getId, getLastReloadTime, getNextJavaScriptId, getOldIds, getOpenFormContent, getOpenFormContent, getProperty, getScriptRoot, getWindowName, init, isInnerView, isNoFrames, isPrintMode, isVisible, setActiveBuffer, setAttachmentDirectory, setAttachmentDirectory, setAttachmentHandler, setAttachmentHandler, setBackground, setBodyClassName, setFormId, setFrameName, setInnerView, setLastModified, setProperty, setTitle, setWindowName, setWriteDivOnly, startComponent, writeCssScripts, writeDivOnly, 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

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyStrutsDialog

public LyStrutsDialog(LyDialog dialog)
Constructor.

Parameters:
dialog - the dialog component
Method Detail

preparePage

public void preparePage(java.lang.String frame,
                        java.lang.String targetWindow)
Description copied from class: LyWebPageWriter
(non-Javadoc).

Overrides:
preparePage in class LyWebPageWriter
See Also:
LyWebPageWriter.preparePage(java.lang.String, java.lang.String)

writeBeginPage

public void writeBeginPage(java.io.Writer pw,
                           java.lang.String frame)
                    throws java.io.IOException
Description copied from class: LyWebPageWriter
Writes the beginning of a HTML page (head, scripts and open the body).

Overrides:
writeBeginPage in class LyWebPageWriter
Parameters:
pw - the page writer
frame - the frame where the page is written
Throws:
java.io.IOException - if something is wrong during page writing

writePageContent

public void writePageContent(java.io.Writer pw,
                             java.lang.String frame)
                      throws java.io.IOException
Description copied from class: LyWebPageWriter
Writes the page content of the frame and the given writer.

Overrides:
writePageContent in class LyWebPageWriter
Parameters:
pw - the page writer
frame - the frame to write
Throws:
java.io.IOException

writeEndPage

public void writeEndPage(java.io.Writer pw,
                         java.lang.String frame)
                  throws java.io.IOException
Description copied from class: LyWebPageWriter
Writes the end of HTML page. Closes the body and html tags and the form tag if it exists.

Overrides:
writeEndPage in class LyWebPageWriter
Parameters:
pw - the page writer
frame - the frame where the page is written
Throws:
java.io.IOException - if something is wrong during end page writes

getActionUrl

public java.lang.String getActionUrl()
Method overriden to return the URL to the "Command" struts action path.

Overrides:
getActionUrl in class LyWebPageWriter
Returns:
the URL of the action or null.

addBeginScript

public void addBeginScript(java.lang.String text,
                           boolean isFile)
Description copied from class: LyWebPageWriter
(non-Javadoc).

Overrides:
addBeginScript in class LyWebPageWriter
See Also:
LyWebPageWriter.addBeginScript(java.lang.String, boolean)

addEndScript

public void addEndScript(java.lang.String text,
                         boolean isFile)
Description copied from class: LyWebPageWriter
(non-Javadoc).

Overrides:
addEndScript in class LyWebPageWriter
See Also:
LyWebPageWriter.addEndScript(java.lang.String, boolean)

getRedirect

public java.lang.String getRedirect(java.lang.String frame)
Description copied from class: LyWebPageWriter
Gets the url for an alternate Web page.

Specified by:
getRedirect in class LyWebPageWriter
Parameters:
frame - the frame to redirect
Returns:
the URL of the alternate Web page

getTarget

public java.lang.String getTarget()
Description copied from class: LyWebPageWriter
(non-Javadoc).

Overrides:
getTarget in class LyWebPageWriter
See Also:
LyWebPageWriter.getTarget()

isFrameSet

public boolean isFrameSet()
Description copied from class: LyWebPageWriter
(non-Javadoc).

Overrides:
isFrameSet in class LyWebPageWriter
See Also:
LyWebPageWriter.isFrameSet()

setBackgroundColor

public void setBackgroundColor(java.lang.String hexColor,
                               java.lang.String frame)
Description copied from class: LyWebPageWriter
Set the background color of the page and store the mapping between the color and frame.

Overrides:
setBackgroundColor in class LyWebPageWriter
Parameters:
hexColor - the string that represents the hexadecimal code for the color
frame - the frame to associate to this background color
See Also:
LyWebPageWriter.getBackgroundColor(String)

setContent

public void setContent()
Sets the content of the dialog.


setVisible

public void setVisible(boolean status)
Description copied from interface: LySetVisibleInterface
Sets the visibility status of this component.

Specified by:
setVisible in interface LySetVisibleInterface
Overrides:
setVisible in class LyWebPageWriter
Parameters:
status - new visibility status, if true the component will be shown, if false it will be hiden

setArea

public void setArea(LyArea area)
Description copied from interface: LyGraphicalDialog
Sets sub-component area.

Specified by:
setArea in interface LyGraphicalDialog
Parameters:
area - New value of area

writeBeginScripts

public void writeBeginScripts(java.io.Writer pw,
                              java.lang.String frame)
                       throws java.io.IOException
Description copied from class: LyWebPageWriter
Writes the begin scripts of the given frame.

Overrides:
writeBeginScripts in class LyWebPageWriter
Parameters:
pw - the page writer
frame - the wrame
Throws:
java.io.IOException
See Also:
LyWebPageWriter.getBeginScriptsAsHtml(String)

writeEndScripts

public void writeEndScripts(java.io.Writer pw,
                            java.lang.String frame)
                     throws java.io.IOException
Description copied from class: LyWebPageWriter
Writes the end scripts of the given frame.

Overrides:
writeEndScripts in class LyWebPageWriter
Parameters:
pw - the page writer
frame - the wrame
Throws:
java.io.IOException
See Also:
LyWebPageWriter.getEndScriptsAsHtml(String)

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com