LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsTitleBar

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

public class LyStrutsTitleBar
extends LyWebObject
implements LyGraphicalTitleBar

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

TITLEBAR: Title Bar
A title bar allows displaying a colored horizontal bar containing images and texts. The text comprises three independent parts and each one of them is optional: a left, a central and a right part. The color of the title bar is defined in the resources of the application.


Field Summary
static java.lang.String __VERSION
           
static int DECO_LABEL_PARAMETER
          Constant used to generate CSS class name for label.
static int DECO_TITLEBAR_PARAMETER
          Constant used to generate CSS class name for titlebar.
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsTitleBar(LyTitleBar titleBar)
          Constructor.
 
Method Summary
 java.lang.String getCenterLabelHtml()
          Gets the HTML tag corresponding to the center label.
 java.lang.String getImageHtml()
          Gets the HTML tag corresponding to the image.
 java.lang.String getLeftLabelHtml()
          Gets the HTML tag corresponding to the left label.
 java.lang.String getRightLabelHtml()
          Gets the HTML tag corresponding to the right label.
 void initialize()
          Initialization method.
 void setCenterLabel(java.lang.String centerLabel)
          (non-Javadoc).
 void setContent()
          Sets the image and right image of the title bar.
 void setImage(java.lang.String image)
          (non-Javadoc).
 void setImageToolTip(java.lang.String toolTip)
          (non-Javadoc).
 void setLeftLabel(java.lang.String leftLabel)
          (non-Javadoc).
 void setRightImage(java.lang.String image)
          (non-Javadoc).
 void setRightImageToolTip(java.lang.String toolTip)
          (non-Javadoc).
 void setRightLabel(java.lang.String rightLabel)
          (non-Javadoc).
 void writeCloseIcon(LyWebPageWriter pw)
          Writes the HTML description of the icon used to close the tool bar view.
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 
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

DECO_TITLEBAR_PARAMETER

public static int DECO_TITLEBAR_PARAMETER
Constant used to generate CSS class name for titlebar.


DECO_LABEL_PARAMETER

public static int DECO_LABEL_PARAMETER
Constant used to generate CSS class name for label.

Constructor Detail

LyStrutsTitleBar

public LyStrutsTitleBar(LyTitleBar titleBar)
Constructor.

Parameters:
titleBar - the title bar component
Method Detail

writeCloseIcon

public void writeCloseIcon(LyWebPageWriter pw)
Writes the HTML description of the icon used to close the tool bar view.

Parameters:
pw - the page writer

initialize

public void initialize()
Initialization method.
Sets the title bar background color and title font with values defined in resources files.
Sets images to null.


setContent

public void setContent()
Sets the image and right image of the title bar.


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)

setRightImage

public void setRightImage(java.lang.String image)
(non-Javadoc).

Specified by:
setRightImage in interface LyGraphicalTitleBar
Parameters:
image - New value of rightImage.
See Also:
LyGraphicalTitleBar.setRightImage(java.lang.String)

getLeftLabelHtml

public java.lang.String getLeftLabelHtml()
Gets the HTML tag corresponding to the left label.

Returns:
the HTML tag corresponding to the left label

getCenterLabelHtml

public java.lang.String getCenterLabelHtml()
Gets the HTML tag corresponding to the center label.

Returns:
the HTML tag corresponding to the center label

getRightLabelHtml

public java.lang.String getRightLabelHtml()
Gets the HTML tag corresponding to the right label.

Returns:
the HTML tag corresponding to the right label

getImageHtml

public java.lang.String getImageHtml()
Gets the HTML tag corresponding to the image.

Returns:
the HTML tag corresponding to the image

setLeftLabel

public void setLeftLabel(java.lang.String leftLabel)
(non-Javadoc).

Specified by:
setLeftLabel in interface LyGraphicalTitleBar
Parameters:
leftLabel - New value of leftLabel.
See Also:
LyGraphicalTitleBar.setLeftLabel(java.lang.String)

setCenterLabel

public void setCenterLabel(java.lang.String centerLabel)
(non-Javadoc).

Specified by:
setCenterLabel in interface LyGraphicalTitleBar
Parameters:
centerLabel - New value of centerLabel.
See Also:
LyGraphicalTitleBar.setCenterLabel(java.lang.String)

setRightLabel

public void setRightLabel(java.lang.String rightLabel)
(non-Javadoc).

Specified by:
setRightLabel in interface LyGraphicalTitleBar
Parameters:
rightLabel - New value of rightLabel.
See Also:
LyGraphicalTitleBar.setRightLabel(java.lang.String)

setRightImageToolTip

public void setRightImageToolTip(java.lang.String toolTip)
(non-Javadoc).

Specified by:
setRightImageToolTip in interface LyGraphicalTitleBar
Parameters:
toolTip - New value of rightImageToolTip.
See Also:
LyGraphicalTitleBar.setRightImageToolTip(java.lang.String)

setImageToolTip

public void setImageToolTip(java.lang.String toolTip)
(non-Javadoc).

Specified by:
setImageToolTip in interface LyGraphicalTitleBar
Parameters:
toolTip - New value of imageToolTip.
See Also:
LyGraphicalTitleBar.setImageToolTip(java.lang.String)

setImage

public void setImage(java.lang.String image)
(non-Javadoc).

Specified by:
setImage in interface LyGraphicalTitleBar
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.
See Also:
LySetImageInterface.setImage(java.lang.String)

(c) January 2013 - W4 S.A.

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