Package org.openbp.common.generic.propertybrowser

Examples of org.openbp.common.generic.propertybrowser.PropertyDescriptor


          String displayName = null;
          if (od != null)
          {
            // Try to get the display name of the property from the
            // object descriptor of the item
            PropertyDescriptor pd = od.getProperty(property);
            if (pd != null)
              displayName = pd.getDisplayName();
          }
          if (displayName == null)
            displayName = property;

          // Property not set, issue error message
View Full Code Here


      PropertyNode propertyNode = (PropertyNode) rootNode.findNodeForProperty(propertyName);
      if (propertyNode != null)
      {
        // The clone method of the ObjectNode doesn't clone
        // the property descriptor, so we have to do this manually.
        PropertyDescriptor pd = propertyNode.getPropertyDescriptor();
        try
        {
          pd = (PropertyDescriptor) pd.clone();
          pd.setReadOnly(readOnly);
          propertyNode.setPropertyDescriptor(pd);
        }
        catch (CloneNotSupportedException e)
        {
          ExceptionUtil.printTrace(e);
View Full Code Here

TOP

Related Classes of org.openbp.common.generic.propertybrowser.PropertyDescriptor

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.