org.apache.myfaces.trinidadinternal.ui.laf.base
Class Icon

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.laf.base.Icon

public class Icon
extends java.lang.Object

Passed to an LafIconProvider by a look and feel object to represent an icon.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/base/Icon.java#0 $) $Date: 10-nov-2005.18:53:00 $
Author:
The Oracle ADF Faces Team
See Also:
LafIconProvider, org.apache.myfaces.trinidadinternal.ui.laf.xhtml.IconArrayLafIconProvider, LookAndFeel

Constructor Summary
Icon(java.lang.String gifName, boolean isCoreColor, boolean isSymmetric, boolean isTransparent)
           
Icon(java.lang.String gifName, java.lang.Class<LookAndFeel> lookAndFeel, NameResolver resolver, boolean isCoreColor, boolean isSymmetric, boolean isTransparent)
           
Icon(java.lang.String gifName, java.lang.Class<LookAndFeel> lookAndFeel, NameResolver resolver, boolean isCoreColor, boolean isSymmetric, boolean isTransparent, java.lang.String styleClass, Style inlineStyle)
           
 
Method Summary
 Style getInlineStyle()
          Returns the inline style
 java.lang.Class<LookAndFeel> getLookAndFeel()
           
 java.lang.String getName()
           
 NameResolver getNameResolver()
           
 java.lang.String getStyleClass()
          Returns the style class
 boolean isCoreColor()
           
 boolean isSymmetric()
           
 boolean isTransparent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Icon

public Icon(java.lang.String gifName,
            java.lang.Class<LookAndFeel> lookAndFeel,
            NameResolver resolver,
            boolean isCoreColor,
            boolean isSymmetric,
            boolean isTransparent)
Parameters:
gifName - name of gif without .gif at the end
lookAndFeel - LookAndFeel class this icon belongs to
resolver - NameResolver used to look up gif
isCoreColor - whether or not icon is core color. Default should be false.
isSymmetric - whether or not a flipped version needs to be created for rtl languages. Default should be false.
isTransparent - whether or not image is transparent. Default should be true.

Icon

public Icon(java.lang.String gifName,
            java.lang.Class<LookAndFeel> lookAndFeel,
            NameResolver resolver,
            boolean isCoreColor,
            boolean isSymmetric,
            boolean isTransparent,
            java.lang.String styleClass,
            Style inlineStyle)
Parameters:
gifName - name of gif without .gif at the end
lookAndFeel - LookAndFeel class this icon belongs to
resolver - NameResolver used to look up gif
isCoreColor - whether or not icon is core color. Default should be false.
isSymmetric - whether or not a flipped version needs to be created for rtl languages. Default should be false.
isTransparent - whether or not image is transparent. Default should be true.
styleClass - The style class for the image icon
inlineStyle - The inline style for the image icon

Icon

public Icon(java.lang.String gifName,
            boolean isCoreColor,
            boolean isSymmetric,
            boolean isTransparent)
Parameters:
gifName - name of gif without .gif at the end
isCoreColor - whether or not icon is core color. Default should be false.
isSymmetric - whether or not a flipped version needs to be created for rtl languages. Default should be false.
isTransparent - whether or not image is transparent. Default should be true.
Method Detail

getName

public java.lang.String getName()

getLookAndFeel

public java.lang.Class<LookAndFeel> getLookAndFeel()

getNameResolver

public NameResolver getNameResolver()

isCoreColor

public boolean isCoreColor()

isSymmetric

public boolean isSymmetric()

isTransparent

public boolean isTransparent()

getStyleClass

public java.lang.String getStyleClass()
Returns the style class


getInlineStyle

public Style getInlineStyle()
Returns the inline style



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.