ilog.webui.dhtml.components

Class IlxWTextElement

  • All Implemented Interfaces:
    ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, java.io.Serializable


    public class IlxWTextElement
    extends IlxWComponent
    A text element. The text element component renders an HTML element containing the text associated with this component.
    See Also:
    Serialized Form
    • Constructor Detail

      • IlxWTextElement

        public IlxWTextElement()
        Constructs an empty text element.
      • IlxWTextElement

        public IlxWTextElement(java.lang.String text)
        Constructs a text element with the given text.
        Parameters:
        text - any string.
    • Method Detail

      • setText

        public void setText(java.lang.String text)
        Sets the text of this component. This method is a shortcut to:
        getStyle().set("text", text)
        Parameters:
        text - a string. If null, removes the text style from the dynamic style object.
      • getText

        public java.lang.String getText()
        Gets the text of this component. This method is a shortcut to:
        getStyle().get("text")
        Returns:
        A string. "" is returned if the text style is not set.

© Copyright IBM Corp. 1987, 2017