|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer ilog.webui.dhtml.IlxWComponent ilog.webui.dhtml.components.IlxWLabel
public class IlxWLabel
A label component. A label component is made up of two children:
IlxWIcon
).IlxWTextElement
).text-position
and icon-text-gap
CSS styles.
text-position
style determines the position of the
text element relative to the icon. Possible values are:
left
: The text element is rendered to the left of the icon.right
: The icon is rendered to the right of the
text element.hidden
: The icon is hidden, only the text component is
displayed.icon-text-gap
style determines the number of white
spaces separating the icon and the text element.
Here is an example of creating and setting up a label:
IlxWLabel label = new IlxWLabel("my caption"); label.setIconPath("/mypackage/myimage.gif"); label.getStyle().set("textPosition", "left"); label.getStyle().set("iconTextGap", "1");
IlxWIcon
,
IlxWTextElement
,
Serialized Form
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent |
---|
IlxWComponent.DynamicStyleMap |
Field Summary |
---|
Fields inherited from class ilog.webui.dhtml.IlxWContainer |
---|
listenerList |
Constructor Summary | |
---|---|
IlxWLabel()
Creates a label with empty path and text. |
|
IlxWLabel(String text)
Creates a label with the given text. |
Method Summary | |
---|---|
IlxWIcon |
getIcon()
Gets the icon component child. |
String |
getIconPath()
Gets the icon path. |
String |
getText()
Gets the text of the label. |
IlxWTextElement |
getTextElement()
Gets the text element component child. |
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical representation of this component. |
void |
setIconPath(String resourceName)
Sets the icon path. |
void |
setText(String text)
Sets the text of the label. |
Methods inherited from class ilog.webui.dhtml.IlxWComponent |
---|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate |
Methods inherited from class ilog.webui.dhtml.IlxWContainer |
---|
add, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlxWLabel()
public IlxWLabel(String text)
Method Detail |
---|
public void setText(String text)
getText()
,
IlxWTextElement
public String getText()
setText(java.lang.String)
public void setIconPath(String resourceName)
IlxWIcon
public String getIconPath()
setIconPath(java.lang.String)
public IlxWTextElement getTextElement()
public IlxWIcon getIcon()
protected void printComponent(IlxWPort port) throws IOException
IlxWComponent
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
printComponent
in class IlxWComponent
IOException
port
- The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |