jcolibri.method.gui.editors
Class ParameterEditorFactory

java.lang.Object
  extended by jcolibri.method.gui.editors.ParameterEditorFactory

public class ParameterEditorFactory
extends java.lang.Object

Factory to obtain the ParameterEditor of a data type.

Version:
1.0
Author:
Juan A. Recio-Garcia

Constructor Summary
ParameterEditorFactory()
           
 
Method Summary
static void clear()
          Clears all the registered editors
static ParameterEditor getEditor(java.lang.Class<?> type)
          Creates the editor and configures it with its data-type name
static ParameterEditor getEditor(java.lang.Class<?> type, java.util.Collection<java.lang.Object> allowedValues)
          Creates the editor and configures it with its data-type name
static void registerEditor(java.lang.Class type, java.lang.Class editor)
          Registers and editor
static void unregisterEditor(java.lang.Class type)
          Unregisters the editor of a type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterEditorFactory

public ParameterEditorFactory()
Method Detail

getEditor

public static ParameterEditor getEditor(java.lang.Class<?> type)
Creates the editor and configures it with its data-type name


getEditor

public static ParameterEditor getEditor(java.lang.Class<?> type,
                                        java.util.Collection<java.lang.Object> allowedValues)
Creates the editor and configures it with its data-type name


registerEditor

public static void registerEditor(java.lang.Class type,
                                  java.lang.Class editor)
Registers and editor

Parameters:
type - that the editor manages
editor - of the type

unregisterEditor

public static void unregisterEditor(java.lang.Class type)
Unregisters the editor of a type.

Parameters:
type - of the editor to remove

clear

public static void clear()
Clears all the registered editors


GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es