ilog.webui.dhtml.components

Class IlxWIcon

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


    public class IlxWIcon
    extends IlxWComponent
    An icon component.

    An icon components is rendered as an <img> HTML element.

    The icon to display is designated by a path, corresponding to the value of the "path" CSS style of the component. This path references a GIF resource file, which will be retrieved either as a resource in the current servlet context, or if it does not exist, as a Java resource in the current class loader stack.

    See Also:
    ServletContext.getResourceAsStream(java.lang.String), Class.getResourceAsStream(java.lang.String), Serialized Form
    • Constructor Detail

      • IlxWIcon

        public IlxWIcon()
        Constructs a new IlxWIcon, with an empty path ("").
      • IlxWIcon

        public IlxWIcon(java.lang.String path)
        Constructs an new IlxWIcon with the given path.
    • Method Detail

      • setPath

        public void setPath(java.lang.String path)
        Set the path of the icon.
        This method is a shortcut to:
        getStyle().set("path", path)
        Parameters:
        path - a resource path. If null the path is considered as "" (empty path).
      • getPath

        public java.lang.String getPath()
        Gets the path of the icon.
        This method is a shortcut to:
        getStyle().get("path")
        Returns:
        The path to the icon.

© Copyright IBM Corp. 1987, 2017