org.eucalyptus.analysesi.gui.dictionary
Class PropertiesTypeAttributeComponentFactory

java.lang.Object
  extended by org.eucalyptus.analysesi.gui.dictionary.PropertiesTypeAttributeComponentFactory

public class PropertiesTypeAttributeComponentFactory
extends java.lang.Object

Cette fabrique construit des composants à partir d'un type d'attribut en utilisant l'introspection.

Author:
Loic Dreux

Constructor Summary
PropertiesTypeAttributeComponentFactory()
           
 
Method Summary
static java.util.List<javax.swing.JComponent> buildComponents(java.lang.Class<? extends TypeAttribute> typeAttributeClass)
          Fabrique plusieurs composants à partir des propriétés d'un type d'attribut.
static TypeAttribute buildTypeAttribute(java.lang.Class<? extends TypeAttribute> typeAttributeClass, java.util.List<javax.swing.JComponent> componentsPropertiesTypeAttribute)
           
static java.util.List<java.lang.String> getFieldsName(java.lang.Class<? extends TypeAttribute> typeAttributeClass)
          Retourne la listes des labels qui correspondent aux propriétés d'un type d'attribut.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesTypeAttributeComponentFactory

public PropertiesTypeAttributeComponentFactory()
Method Detail

buildComponents

public static java.util.List<javax.swing.JComponent> buildComponents(java.lang.Class<? extends TypeAttribute> typeAttributeClass)
Fabrique plusieurs composants à partir des propriétés d'un type d'attribut.

Parameters:
comboBoxTypeAttribute -
Returns:

buildTypeAttribute

public static TypeAttribute buildTypeAttribute(java.lang.Class<? extends TypeAttribute> typeAttributeClass,
                                               java.util.List<javax.swing.JComponent> componentsPropertiesTypeAttribute)
Parameters:
typeAttributeClass -
componentsPropertiesTypeAttribute -
Returns:

getFieldsName

public static java.util.List<java.lang.String> getFieldsName(java.lang.Class<? extends TypeAttribute> typeAttributeClass)
Retourne la listes des labels qui correspondent aux propriétés d'un type d'attribut.

Parameters:
comboBoxTypeAttribute -
Returns:


Copyright © 2009. All Rights Reserved.