gishur.graph.awt
Class PropertyTypeSelector

java.lang.Object
  |
  +--gishur.graph.awt.PropertyTypeSelector

public class PropertyTypeSelector
extends java.lang.Object

Version:
1.0
Author:
Thomas Wolf

Constructor Summary
PropertyTypeSelector()
           
 
Method Summary
 java.lang.String[] getSortedTypeNames()
          Returns a sorted array with the registered type names.
 TypeFormat getTypeFormat(java.lang.Object value)
          Returns the TypeFormat associated with the given value object.
 TypeFormat getTypeFormat(java.lang.String name)
          Returns the TypeFormat associated with the given type name.
 void registerTypeFormat(TypeFormat fmt)
          Registers a TypeFormat to the PropertyTypeSelector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyTypeSelector

public PropertyTypeSelector()
Method Detail

registerTypeFormat

public void registerTypeFormat(TypeFormat fmt)
Registers a TypeFormat to the PropertyTypeSelector.
Parameters:
fmt - the TypeFormat to register

getTypeFormat

public TypeFormat getTypeFormat(java.lang.String name)
Returns the TypeFormat associated with the given type name.
Parameters:
name - the type name to query
Returns:
the associated TypeFormat or null if none.

getTypeFormat

public TypeFormat getTypeFormat(java.lang.Object value)
Returns the TypeFormat associated with the given value object.
Parameters:
value - the object type to query
Returns:
the associated TypeFormat or null if none.

getSortedTypeNames

public java.lang.String[] getSortedTypeNames()
Returns a sorted array with the registered type names.
Returns:
a sorted array with the registered type names.