LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsHeaders

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsHeaders
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalHeaders, LyViewComponent, LyFreeInterface, LyWebComponent

public class LyStrutsHeaders
extends LyWebObject
implements LyGraphicalHeaders

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

HEADERS: Headers line
A headers allows to display header cells at the beginning of a list. A header does not contain any element: it is only a non-empty list of header cells or sub-headers.

See Also:
LyHeaders

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsHeaders(LyHeaders headers)
          Class constructor of a Headers object for the struts target.
 
Method Summary
 int getRowSpan()
          Gets row span.
 java.lang.String getSortedCols()
          Builds the string of sorted columns.
 void initialize()
          Initialization method.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 void writeHtml(LyWebPageWriter pw, boolean drawImages, boolean sortOnStatus)
          Writes the HTML representation of this headers.
 void writeHtml(LyWebPageWriter pw, boolean drawImages, boolean sortOnStatus, boolean topHeaders)
          Deprecated.  
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, 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
Constructor Detail

LyStrutsHeaders

public LyStrutsHeaders(LyHeaders headers)
Class constructor of a Headers object for the struts target.

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

initialize

public void initialize()
Initialization method.
Sets default value to the row span of header components.
Sets font, colors, images and tooltip with values defined in resources files.


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

writeHtml

public void writeHtml(LyWebPageWriter pw,
                      boolean drawImages,
                      boolean sortOnStatus,
                      boolean topHeaders)
Deprecated. 

Writes the HTML representation of this headers.

Parameters:
pw - the page writer
drawImages - indicates if there is an image to draw
sortOnStatus - indicates if there is a sort on status
topHeaders - the top headers
See Also:
LyWebComponent.writeHtml(LyWebPageWriter)

writeHtml

public void writeHtml(LyWebPageWriter pw,
                      boolean drawImages,
                      boolean sortOnStatus)
Writes the HTML representation of this headers.

Parameters:
pw - the page writer
drawImages - indicates if there is an image to draw
sortOnStatus - indicates if there is a sort on status
See Also:
LyWebComponent.writeHtml(LyWebPageWriter)

getSortedCols

public java.lang.String getSortedCols()
Builds the string of sorted columns.
Example of the string format: "sort+2-3+6" indicates that colums 2 and 6 have an increasing sort and the column 6 has a decreasing sort. Other columns are not sorted.

Returns:
string of sorted columns

getRowSpan

public int getRowSpan()
Gets row span.

Returns:
row span

(c) January 2013 - W4 S.A.

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