com.ezware.dialog.task
Enum TaskDialog.StandardIcon

java.lang.Object
  extended by java.lang.Enum<TaskDialog.StandardIcon>
      extended by com.ezware.dialog.task.TaskDialog.StandardIcon
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TaskDialog.StandardIcon>, javax.swing.Icon
Enclosing class:
TaskDialog

public static enum TaskDialog.StandardIcon
extends java.lang.Enum<TaskDialog.StandardIcon>
implements javax.swing.Icon

Set of standard dialog icons. Look and Feel dependent


Enum Constant Summary
ERROR
           
INFO
           
QUESTION
           
WARNING
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
static TaskDialog.StandardIcon valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TaskDialog.StandardIcon[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INFO

public static final TaskDialog.StandardIcon INFO

QUESTION

public static final TaskDialog.StandardIcon QUESTION

WARNING

public static final TaskDialog.StandardIcon WARNING

ERROR

public static final TaskDialog.StandardIcon ERROR
Method Detail

values

public static TaskDialog.StandardIcon[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TaskDialog.StandardIcon c : TaskDialog.StandardIcon.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaskDialog.StandardIcon valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon


Copyright © 2010 ezware. All Rights Reserved.