org.diylc.presenter
Class ComponentProcessor

java.lang.Object
  extended by org.diylc.presenter.ComponentProcessor

public class ComponentProcessor
extends java.lang.Object

Utility class with component processing methods.

Author:
Branislav Stojkovic

Method Summary
 ComponentType extractComponentTypeFrom(java.lang.Class<? extends IDIYComponent<?>> clazz)
           
 java.util.List<PropertyWrapper> extractProperties(java.lang.Class<?> clazz)
          Extracts all editable properties from the component class.
static ComponentProcessor getInstance()
           
 java.util.List<PropertyWrapper> getMutualSelectionProperties(java.util.List<IDIYComponent<?>> selectedComponents)
          Returns properties that have the same value for all the selected components.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ComponentProcessor getInstance()

extractComponentTypeFrom

public ComponentType extractComponentTypeFrom(java.lang.Class<? extends IDIYComponent<?>> clazz)

extractProperties

public java.util.List<PropertyWrapper> extractProperties(java.lang.Class<?> clazz)
Extracts all editable properties from the component class.

Parameters:
clazz -
Returns:

getMutualSelectionProperties

public java.util.List<PropertyWrapper> getMutualSelectionProperties(java.util.List<IDIYComponent<?>> selectedComponents)
                                                             throws java.lang.Exception
Returns properties that have the same value for all the selected components.

Parameters:
selectedComponents -
Returns:
Throws:
java.lang.Exception