public class IlxWIcon extends IlxWComponent
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.
ServletContext.getResourceAsStream(java.lang.String),
Class.getResourceAsStream(java.lang.String),
Serialized FormIlxWComponent.DynamicStyleMaplistenerList| Constructor and Description |
|---|
IlxWIcon()
Constructs a new IlxWIcon, with an empty path ("").
|
IlxWIcon(java.lang.String path)
Constructs an new IlxWIcon with the given path.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPath()
Gets the path of the icon.
|
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical
representation of this component.
|
void |
setPath(java.lang.String path)
Set the path of the icon.
|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validateadd, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizerpublic IlxWIcon()
public IlxWIcon(java.lang.String path)
public void setPath(java.lang.String path)
getStyle().set("path", path)path - a resource path. If null the path is
considered as "" (empty path).public java.lang.String getPath()
getStyle().get("path")protected void printComponent(IlxWPort port) throws java.io.IOException
IlxWComponentIlxWComponent.print(ilog.webui.dhtml.IlxWPort) method.printComponent in class IlxWComponentjava.io.IOExceptionport - The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)© Copyright IBM Corp. 1987, 2017