corelib.services.web.components
Class OutputText

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.VisualComponent
          extended by corelib.services.web.components.OutputText

public class OutputText
extends VisualComponent

This class produces some texts into the generated HTML page. Produced texts can be linked to data in accordance with the Ellipse data binding model unlike simple HTML tag.

Since:
0.1.0
Author:
Infini Software : Alexia Ramaļoli & Dominique Liard

Field Summary
 
Fields inherited from class corelib.services.web.components.VisualComponent
cssClass, cssStyle, toolTipText, visible
 
Fields inherited from class corelib.services.web.components.WebComponent
dataBindings, webPage, xmlNode
 
Constructor Summary
OutputText()
           
 
Method Summary
 void component_renderBegin(WebPageEvent webPageEvent)
          Produce the HTML code associated to this OutputText web component.
 java.lang.String getText()
          Returns the associated text.
 boolean isUndecorated()
          Indicates if the associated text is decorated with a HTML <SPAN> tag or not.
 void setText(java.lang.String text)
          Changes the associated text.
 void setUndecorated(boolean state)
          Changes the decoration mode of the text.
 
Methods inherited from class corelib.services.web.components.VisualComponent
component_postRender, component_preRender, component_renderChildren, component_renderEnd, component_renderJavascriptLocalisation, encodeAttributeValue, getCssClass, getCssStyle, getOnClickListener, getSharedAttributesHtmlEncoding, getToolTipText, isVisible, renderElement, setCssClass, setCssStyle, setOnClickListener, setToolTipText, setVisible
 
Methods inherited from class corelib.services.web.components.WebComponent
addBindingExpression, addChildComponent, component_init, component_load, component_preRepeaterDuplications, getChildComponents, getDataBinding, getElementsByTagName, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputText

public OutputText()
Method Detail

getText

public java.lang.String getText()
Returns the associated text.

Returns:
The associated text.

setText

public void setText(java.lang.String text)
Changes the associated text.

Parameters:
text - The new text.

isUndecorated

public boolean isUndecorated()
Indicates if the associated text is decorated with a HTML <SPAN> tag or not.

Returns:
true if the text is undecorated, false otherwize.

setUndecorated

public void setUndecorated(boolean state)
Changes the decoration mode of the text.

Parameters:
state - true if the text must be decorated with a HTML SPAN tag.

component_renderBegin

public void component_renderBegin(WebPageEvent webPageEvent)
Produce the HTML code associated to this OutputText web component.

Overrides:
component_renderBegin in class VisualComponent
Parameters:
webPageEvent - The current web page event.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.