LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsSplitter

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.LyStrutsContainer
                  extended by leon.view.web.struts.LyStrutsSplitter
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalContainer, LyGraphicalFieldItem, LyGraphicalPanel, LyGraphicalSplitter, LyViewComponent, LyFreeInterface, LyWebComponent

public class LyStrutsSplitter
extends LyStrutsContainer
implements LyGraphicalSplitter

This class implements the Splitter object (as described in the dtd) for web viewer.

SPLITTER: Panel with Splitter
A container of panel type with splitter allows displaying different panels that are splitted by vertical or horizontal separation bars. These bars can be moved so as to allocating more or less place to each of the panels. The minimum number of panels that is required is two panels. There is no constraint on the maximum number of panels allowed in such a container. Including such containers in containers of same type allows getting windows combining vertical and horizontal separators.


Field Summary
static java.lang.String __VERSION
           
static int MAXIMUM_COMPONENT_HEIGHT
          Maximum height of the components displayed in a splitter.
 
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
LyStrutsSplitter(LySplitter splitter)
          Constructor.
 
Method Summary
 java.lang.StringBuffer getBuffer(java.lang.String key)
          Gets the buffer associated to the given frame.
 java.util.Vector<LyWebPageWriter> getPageWriters()
          (non-Javadoc).
 java.lang.String getRedirect(java.lang.String frame)
          Gets the url for an alternate Web page.
 void init()
          Initialization method.
 boolean isFrameSet()
          (non-Javadoc).
 void preparePage(java.lang.String frame, java.lang.String targetWindow)
          (non-Javadoc).
 void setActivePart(LySplitter.ActivePart activePart)
          Updates attribute activePart to the given value.
 void setForceReloadState(boolean force)
          (non-Javadoc).
 void setNoFrames(boolean noFrames)
          Prevent from using frameset.
 void setPrintMode(boolean printMode)
          (non-Javadoc).
 void setProperty(java.lang.String name, java.lang.String value)
          (non-Javadoc).
 void setSelected(boolean status)
           
 void setSizes(java.lang.String sizes)
          Updates attribute sizes to the given value.
 void writeBeginPage(java.io.Writer pw, java.lang.String frame)
          Writes the beginning of a HTML page (head, scripts and open the body).
 void writeEndPage(java.io.Writer pw, java.lang.String frame)
          Writes the end of HTML page.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
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, getScriptRoot, getTarget, getWindowName, isInnerView, isNoFrames, isPrintMode, isVisible, setActiveBuffer, setAttachmentDirectory, setAttachmentDirectory, setAttachmentHandler, setAttachmentHandler, setBackground, setBackgroundColor, setBodyClassName, setFormId, setFrameName, setInnerView, setLastModified, setTitle, setVisible, setWindowName, setWriteDivOnly, startComponent, writeBeginScripts, writeCssScripts, writeDivOnly, 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
 

Field Detail

__VERSION

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

MAXIMUM_COMPONENT_HEIGHT

public static int MAXIMUM_COMPONENT_HEIGHT
Maximum height of the components displayed in a splitter.

Constructor Detail

LyStrutsSplitter

public LyStrutsSplitter(LySplitter splitter)
Constructor.

Parameters:
splitter - the splitter component
Method Detail

writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
(non-Javadoc).

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

init

public void init()
Description copied from class: LyWebPageWriter
Initialization method.
Sets the main buffer as the active buffer, register this page writer on its view manager and set a default value to the class attributes.

Overrides:
init in class LyWebPageWriter

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

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

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

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)

isFrameSet

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

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

setNoFrames

public void setNoFrames(boolean noFrames)
Description copied from class: LyWebPageWriter
Prevent from using frameset.

Overrides:
setNoFrames in class LyWebPageWriter
Parameters:
noFrames - if true, means that no frame set is used, false otherwise

setPrintMode

public void setPrintMode(boolean printMode)
Description copied from class: LyWebPageWriter
(non-Javadoc).

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

getPageWriters

public java.util.Vector<LyWebPageWriter> getPageWriters()
Description copied from class: LyWebPageWriter
(non-Javadoc).

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

setForceReloadState

public void setForceReloadState(boolean force)
Description copied from class: LyWebPageWriter
(non-Javadoc).

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

getBuffer

public java.lang.StringBuffer getBuffer(java.lang.String key)
Description copied from class: LyWebPageWriter
Gets the buffer associated to the given frame.

Overrides:
getBuffer in class LyWebPageWriter
Parameters:
key - the frame
Returns:
the buffer associated to the given frame if it exists, null otherwise

setSizes

public void setSizes(java.lang.String sizes)
Description copied from interface: LyGraphicalSplitter
Updates attribute sizes to the given value.

Specified by:
setSizes in interface LyGraphicalSplitter
Parameters:
sizes - New value of sizes.

setSelected

public void setSelected(boolean status)

setActivePart

public void setActivePart(LySplitter.ActivePart activePart)
Description copied from interface: LyGraphicalSplitter
Updates attribute activePart to the given value.

Specified by:
setActivePart in interface LyGraphicalSplitter
Parameters:
activePart - New value of activePart.

(c) January 2013 - W4 S.A.

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