|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swing.icons.IconicRegistry
public class IconicRegistry
A registry mapping class types to their IconicFactory's.
| Field Summary | |
|---|---|
protected HashMap |
factories
|
| Constructor Summary | |
|---|---|
IconicRegistry()
|
|
| Method Summary | |
|---|---|
IconicFactory |
get(Class type)
Get the factory for a given type. |
IconicFactory |
get(Object value)
Get the factory for a given value. |
Iconic |
getIconicValue(Object value)
Get an Iconic value. |
static IconicRegistry |
getInstance()
The default shared instance. |
void |
register(Class type,
Iconic iconic)
Register an iconic value that applies to all instances of a given type. |
void |
register(Class type,
IconicFactory factory)
Register a factory for a given type. |
void |
register(Class type,
String name,
Icon icon)
Register an icon that applies to all instances of a given type. |
void |
unregister(Class type)
Remove the registered factory for a given type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap factories
| Constructor Detail |
|---|
public IconicRegistry()
| Method Detail |
|---|
public static IconicRegistry getInstance()
public void register(Class type,
String name,
Icon icon)
type - The type of value.icon - The icon to use for all instances of type.register(Class,IconicFactory)
public void register(Class type,
Iconic iconic)
type - The type of value.iconic - The iconic value to use for all instances of type.register(Class,IconicFactory)
public void register(Class type,
IconicFactory factory)
type - The type. Subclasses of this type are not matched.factory - The factory for the type. May be null to clear the factory
for the type.register(Class, Iconic)public void unregister(Class type)
public IconicFactory get(Object value)
value - The value.
public IconicFactory get(Class type)
type - The type.
public Iconic getIconicValue(Object value)
value - The value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||