LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsView

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
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalView, LyViewComponent, LyFreeInterface, LySetLabelInterface, LySetVisibleInterface, LyWebComponent
Direct Known Subclasses:
LyStrutsDialog, LyStrutsFrame

public abstract class LyStrutsView
extends LyWebPageWriter
implements LyGraphicalView, LySetVisibleInterface, LySetLabelInterface

This class implements the common behavior of the View object for struts viewer.

See Also:
LyView

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
LyStrutsView(LyView view)
          Class constructor of a View object for the struts target.
 
Method Summary
 LyArea getArea()
          Gets the view area.
 java.lang.StringBuffer getBuffer(java.lang.String key)
          (non-Javadoc).
 java.util.Vector<LyWebPageWriter> getPageWriters()
          (non-Javadoc).
 LyView getView()
          Gets the view.
 void setForceReloadState(boolean force)
          (non-Javadoc).
 void setLabel(java.lang.String label)
          Sets the label of the component.
 void setNoFrames(boolean noFrames)
          (non-Javadoc).
 void setPrintMode(boolean printMode)
          (non-Javadoc).
 void writeArea(LyWebPageWriter pw)
          Write HTML description corresponding to the area.
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 
Methods inherited from class leon.view.web.LyWebPageWriter
addBeginScript, addCssScript, addEndScript, addEndScript, append, clearBeginScripts, clearBeginScripts, clearBuffer, clearCssScripts, clearCssScripts, clearEndScripts, clearEndScripts, copyScriptsTo, endComponent, free, getActionUrl, getActiveFormId, getActiveName, getAttachmentDirectory, getAttachmentHandler, getBackground, getBackgroundColor, getBeginScriptsAsHtml, getCssFileAsHtml, getCssScriptsAsHtml, getEndScriptsAsHtml, getForceReloadState, getFormId, getFrameName, getId, getLastReloadTime, getNextJavaScriptId, getOldIds, getOpenFormContent, getOpenFormContent, getProperty, getRedirect, getScriptRoot, getTarget, getWindowName, init, isFrameSet, isInnerView, isNoFrames, isPrintMode, isVisible, preparePage, setActiveBuffer, setAttachmentDirectory, setAttachmentDirectory, setAttachmentHandler, setAttachmentHandler, setBackground, setBackgroundColor, setBodyClassName, setFormId, setFrameName, setInnerView, setLastModified, setProperty, setTitle, setVisible, setWindowName, setWriteDivOnly, startComponent, writeBeginPage, writeBeginScripts, writeCssScripts, writeDivOnly, writeEndPage, writeEndScripts, writeHtml, writePageContent
 
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.LyGraphicalComponent
free, getViewComponent
 
Methods inherited from interface leon.view.setinterface.LySetVisibleInterface
setVisible
 

Field Detail

__VERSION

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

LyStrutsView

public LyStrutsView(LyView view)
Class constructor of a View object for the struts target.

Parameters:
view - the generic View defined for every type of view targets
Method Detail

writeHtml

public void writeHtml(LyWebPageWriter pw)
(non-Javadoc).

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

getView

public final LyView getView()
Gets the view.

Returns:
the view
See Also:
LyGraphicalObject.getViewComponent()

getArea

public final LyArea getArea()
Gets the view area.

Returns:
the area
See Also:
LyView.getArea()

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LySetLabelInterface
Sets the label of the component.

Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - new label

setPrintMode

public void setPrintMode(boolean printMode)
(non-Javadoc).

Overrides:
setPrintMode in class LyWebPageWriter
See Also:
LyWebPageWriter.setPrintMode(boolean)

writeArea

public void writeArea(LyWebPageWriter pw)
Write HTML description corresponding to the area.

Parameters:
pw - the page writer

setNoFrames

public void setNoFrames(boolean noFrames)
(non-Javadoc).

Overrides:
setNoFrames in class LyWebPageWriter
Parameters:
noFrames - if true, means that no frame set is used, false otherwise
See Also:
leon.view.web.LyWebPage#setNoFrames(boolean)

getPageWriters

public java.util.Vector<LyWebPageWriter> getPageWriters()
(non-Javadoc).

Specified by:
getPageWriters in class LyWebPageWriter
See Also:
LyWebPageWriter.getPageWriters()

setForceReloadState

public void setForceReloadState(boolean force)
(non-Javadoc).

Overrides:
setForceReloadState in class LyWebPageWriter
See Also:
LyWebPageWriter.setForceReloadState(boolean)

getBuffer

public java.lang.StringBuffer getBuffer(java.lang.String key)
(non-Javadoc).

Overrides:
getBuffer in class LyWebPageWriter
Parameters:
key - the frame
Returns:
the buffer associated to the given frame if it exists, null otherwise
See Also:
leon.view.web.LyWebPage#getBuffer(java.lang.String)

(c) January 2013 - W4 S.A.

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