UIX 2.2.16

oracle.cabo.ui.laf.icon
Class TextIcon

java.lang.Object
  |
  +--oracle.cabo.ui.laf.icon.Icon
        |
        +--oracle.cabo.ui.laf.icon.TextIcon

public class TextIcon
extends Icon

An Icon implementation which renders a text string as the icon.


Constructor Summary
TextIcon(java.lang.String text)
          Creates the TextIcon with the specified text string.
TextIcon(java.lang.String text, java.lang.String rtlText)
          Creates a TextIcon which uses different text depending on the reading direction.
TextIcon(java.lang.String text, java.lang.String rtlText, java.lang.String styleClass, Style inlineStyle)
          Creates the TextIcon with the specified text string, style class, and inline style.
 
Method Summary
protected  java.lang.String getText(RenderingContext context)
          Returns the text to render.
 void renderIcon(RenderingContext context, AttributeMap attrs)
          Renders the Icon.
 
Methods inherited from class oracle.cabo.ui.laf.icon.Icon
getImageData, getImageHeight, getImageURI, getImageWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextIcon

public TextIcon(java.lang.String text)
Creates the TextIcon with the specified text string.

TextIcon

public TextIcon(java.lang.String text,
                java.lang.String rtlText)
Creates a TextIcon which uses different text depending on the reading direction.

TextIcon

public TextIcon(java.lang.String text,
                java.lang.String rtlText,
                java.lang.String styleClass,
                Style inlineStyle)
Creates the TextIcon with the specified text string, style class, and inline style.
Method Detail

renderIcon

public void renderIcon(RenderingContext context,
                       AttributeMap attrs)
                throws java.io.IOException
Renders the Icon.
Overrides:
renderIcon in class Icon
Parameters:
context - The RenderingContext for the current request.
attrs - An AttributeMap which provides access to attribute values that might be useful to Icon implementations TextIcon currently only looks for the ID attribute.

getText

protected java.lang.String getText(RenderingContext context)
Returns the text to render.

UIX 2.2.16