com.retek.commons.gui.util
Class IconUtils

java.lang.Object
  extended bycom.retek.commons.gui.util.IconUtils

public class IconUtils
extends java.lang.Object


Method Summary
static void setDisabledIcon(RButton button, java.lang.String key, java.lang.String substituteText)
          Assigns an icon to display in the button in disabled mode.
static void setIcon(RButton button, java.lang.String key, java.lang.String substituteText)
          Assigns an icon to display in the button in enabled mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setIcon

public static void setIcon(RButton button,
                           java.lang.String key,
                           java.lang.String substituteText)
Assigns an icon to display in the button in enabled mode. If an error occurs creating the icon, the substitute text will replace the icon.

The key string may be either a key of the Application.properties file, or a fully qualified filename.

Parameters:
button - The button to place the icon in.
key - A key string in the Application.properties file or a fully qualified filename.
substituteText - The text used to replace the icon in case of an error.

setDisabledIcon

public static void setDisabledIcon(RButton button,
                                   java.lang.String key,
                                   java.lang.String substituteText)
Assigns an icon to display in the button in disabled mode. If an error occurs creating the icon, the substitute text will replace the icon.

The key string may be either a key of the Application.properties file, or a fully qualified filename.

Parameters:
button - The button to place the icon in.
key - A key string in the Application.properties file or a fully qualified filename.
substituteText - The text used to replace the icon in case of an error.


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28