|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.util.AbstractEnumerationValue
dsto.dfc.util.StringEnumerationValue
dsto.dfc.swing.icons.IconicEnumerationValue
public abstract class IconicEnumerationValue
Base class for enumerated types that have an iconic representation.
Field Summary | |
---|---|
protected Icon |
icon
Icon is marked transient on the assumption that StringEnumerationValue's readResolve () will do a resolution to the singleton instance in getEnumValues (). |
Fields inherited from class dsto.dfc.util.StringEnumerationValue |
---|
name, text |
Fields inherited from interface dsto.dfc.swing.icons.Iconic |
---|
NULL_ICON |
Constructor Summary | |
---|---|
protected |
IconicEnumerationValue()
|
|
IconicEnumerationValue(String name)
Create new instance with a null icon. |
|
IconicEnumerationValue(String name,
Icon icon)
Create an instance with associated string and icon representation. |
|
IconicEnumerationValue(String name,
String iconRes)
Create an instance with associated string and icon representation. |
|
IconicEnumerationValue(String name,
String text,
Icon icon)
Create an instance with associated string and icon representation. |
|
IconicEnumerationValue(String name,
String text,
String iconRes)
|
Method Summary | |
---|---|
abstract EnumerationValue[] |
getEnumValues()
Get the list of values within the enumeration. |
Icon |
getIcon()
The small (16x16) icon for the object. |
Icon |
getLargeIcon()
The large (32x32) icon. |
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 |
Methods inherited from interface dsto.dfc.swing.icons.Iconic |
---|
getName |
Field Detail |
---|
protected transient Icon icon
Constructor Detail |
---|
protected IconicEnumerationValue()
public IconicEnumerationValue(String name)
name
- The logical name of the this value.public IconicEnumerationValue(String name, String iconRes)
name
- The logical name of the this value.iconRes
- The resource name of the icon to associate with
this value.public IconicEnumerationValue(String name, Icon icon)
name
- The logical name of this value.icon
- The icon to associate with this value.public IconicEnumerationValue(String name, String text, Icon icon)
name
- The logical name of this value.text
- The human readable text for the value.icon
- The icon to associate with this value.public IconicEnumerationValue(String name, String text, String iconRes)
Method Detail |
---|
public abstract EnumerationValue[] getEnumValues()
EnumerationValue
getEnumValues
in interface EnumerationValue
getEnumValues
in class StringEnumerationValue
public Icon getIcon()
Iconic
getIcon
in interface Iconic
public Icon getLargeIcon()
Iconic
getLargeIcon
in interface Iconic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |