dsto.dfc.swt.icons
Class IconicEnumerationValue

java.lang.Object
  extended by dsto.dfc.util.AbstractEnumerationValue
      extended by dsto.dfc.util.StringEnumerationValue
          extended by dsto.dfc.swt.icons.IconicEnumerationValue
All Implemented Interfaces:
Iconic, EnumerationValue, Serializable
Direct Known Subclasses:
AbstractStyle

public abstract class IconicEnumerationValue
extends StringEnumerationValue
implements Iconic, Serializable

Author:
mpp To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class dsto.dfc.util.StringEnumerationValue
name, text
 
Constructor Summary
protected IconicEnumerationValue()
          To support beans serialization only.
  IconicEnumerationValue(String name, Icon icon)
           
  IconicEnumerationValue(String name, String iconResource)
           
  IconicEnumerationValue(String name, String text, Icon iconResource)
           
  IconicEnumerationValue(String name, String text, String iconResource)
           
 
Method Summary
abstract  EnumerationValue[] getEnumValues()
          Get the list of values within the enumeration.
 Icon getIcon()
           
 String getIconicName()
           
 
Methods inherited from class dsto.dfc.util.StringEnumerationValue
equals, findIndex, findValue, getName, getText, hashCode, setName, toString
 
Methods inherited from class dsto.dfc.util.AbstractEnumerationValue
findIndex, findIndex, readResolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IconicEnumerationValue

protected IconicEnumerationValue()
To support beans serialization only.


IconicEnumerationValue

public IconicEnumerationValue(String name,
                              String iconResource)

IconicEnumerationValue

public IconicEnumerationValue(String name,
                              Icon icon)

IconicEnumerationValue

public IconicEnumerationValue(String name,
                              String text,
                              String iconResource)

IconicEnumerationValue

public IconicEnumerationValue(String name,
                              String text,
                              Icon iconResource)
Method Detail

getEnumValues

public abstract EnumerationValue[] getEnumValues()
Description copied from interface: EnumerationValue
Get the list of values within the enumeration.

Specified by:
getEnumValues in interface EnumerationValue
Specified by:
getEnumValues in class StringEnumerationValue

getIcon

public Icon getIcon()
Specified by:
getIcon in interface Iconic

getIconicName

public String getIconicName()
Specified by:
getIconicName in interface Iconic


Copyright © 2008 Commonwealth of Australia