Package org.jamesii.gui.utils.objecteditor.property.provider

Examples of org.jamesii.gui.utils.objecteditor.property.provider.IPropertyProvider


   *          the value the actual value of parent class
   * @return the determined properties
   */
  private List<IProperty> checkClass(Class<?> parentClass, Object v) {
    try {
      IPropertyProvider provider = getPropertyProvider(parentClass);

      List<IProperty> result = new ArrayList<>();
      List<IProperty> descriptors = provider.getPropertiesFor(parentClass, v);
      if (descriptors == null) {
        return result;
      }
      for (IProperty pd : descriptors) {
        // check property filters also
View Full Code Here


    // class hierarchy
    // e.g. if there is an Integer property provider it is preferred
    // before a Number property provider for Integer classes.

    Class<?> supportedClass = Object.class;
    IPropertyProvider result = new DefaultPropertyProvider();

    for (Entry<Class<?>, IPropertyProvider> e : propertyProviders.entrySet()) {
      // check if provider is capable of handling parentClass
      if (e.getValue().supportsClass(parentClass)
          && e.getKey().isAssignableFrom(parentClass)) {
View Full Code Here

TOP

Related Classes of org.jamesii.gui.utils.objecteditor.property.provider.IPropertyProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.