Examples of FeatureDescriptor


Examples of java.beans.FeatureDescriptor

   
    public static FeatureDescriptor getFeatureDescriptor(String name, String
        displayName, String desc, boolean expert, boolean hidden,
        boolean preferred, Object type, Boolean designTime) {
           
        FeatureDescriptor fd = new FeatureDescriptor();
        fd.setName(name);
        fd.setDisplayName(displayName);
        fd.setShortDescription(desc);
        fd.setExpert(expert);
        fd.setHidden(hidden);
        fd.setPreferred(preferred);
        fd.setValue(ELResolver.TYPE, type);
        fd.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, designTime);
        return fd;
    }
View Full Code Here

Examples of java.beans.FeatureDescriptor

          return properties != null && next < properties.length;
        }

        public FeatureDescriptor next() {
          PropertyDescriptor property = properties[next++];
          FeatureDescriptor feature = new FeatureDescriptor();
          feature.setDisplayName(property.getDisplayName());
          feature.setName(property.getName());
          feature.setShortDescription(property.getShortDescription());
          feature.setExpert(property.isExpert());
          feature.setHidden(property.isHidden());
          feature.setPreferred(property.isPreferred());
          feature.setValue(TYPE, property.getPropertyType());
          feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true);
          return feature;
        }

        public void remove() {
          throw new UnsupportedOperationException("cannot remove");
View Full Code Here

Examples of java.beans.FeatureDescriptor

    public Iterator getFeatureDescriptors(ELContext context, Object base) {
        if (base instanceof ResourceBundle) {
            ResourceBundle bundle = (ResourceBundle) base;
            List features = new ArrayList();
            String key = null;
            FeatureDescriptor desc = null;
            for (Enumeration e = bundle.getKeys(); e.hasMoreElements();) {
                key = (String) e.nextElement();
                desc = new FeatureDescriptor();
                desc.setDisplayName(key);
                desc.setExpert(false);
                desc.setHidden(false);
                desc.setName(key);
                desc.setPreferred(true);
                desc.setValue(TYPE, String.class);
                desc.setValue(RESOLVABLE_AT_DESIGN_TIME, Boolean.TRUE);
                features.add(desc);
            }
            return features.iterator();
        }
        return null;
View Full Code Here

Examples of java.beans.FeatureDescriptor

            Map map = (Map) base;
            Iterator iter = map.keySet().iterator();
            List<FeatureDescriptor> list = new ArrayList<FeatureDescriptor>();
            while (iter.hasNext()) {
                Object key = iter.next();
                FeatureDescriptor descriptor = new FeatureDescriptor();
                String name = (key==null)? null: key.toString();
                descriptor.setName(name);
                descriptor.setDisplayName(name);
                descriptor.setShortDescription("");
                descriptor.setExpert(false);
                descriptor.setHidden(false);
                descriptor.setPreferred(true);
                descriptor.setValue("type", key==null? null: key.getClass());
                descriptor.setValue("resolvableAtDesignTime", Boolean.TRUE);
                list.add(descriptor);
            }
            return list.iterator();
        }
        return null;
View Full Code Here

Examples of java.beans.FeatureDescriptor

      return new Iterator<FeatureDescriptor>() {
        public boolean hasNext() {
          return keys.hasMoreElements();
        }
        public FeatureDescriptor next() {
          FeatureDescriptor feature = new FeatureDescriptor();
          feature.setDisplayName(keys.nextElement());
          feature.setName(feature.getDisplayName());
          feature.setShortDescription("");
          feature.setExpert(true);
          feature.setHidden(false);
          feature.setPreferred(true);
          feature.setValue(TYPE, String.class);
          feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true);
          return feature;
        }
        public void remove() {
          throw new UnsupportedOperationException("Cannot remove");
         
View Full Code Here

Examples of java.beans.FeatureDescriptor

        public boolean hasNext() {
          return keys.hasNext();
        }
        public FeatureDescriptor next() {
          Object key = keys.next();
          FeatureDescriptor feature = new FeatureDescriptor();
          feature.setDisplayName(key == null ? "null" : key.toString());
          feature.setName(feature.getDisplayName());
          feature.setShortDescription("");
          feature.setExpert(true);
          feature.setHidden(false);
          feature.setPreferred(true);
          feature.setValue(TYPE, key == null ? null : key.getClass());
          feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true);
          return feature;
         
        }
        public void remove() {
          throw new UnsupportedOperationException("cannot remove");
View Full Code Here

Examples of java.beans.FeatureDescriptor

          return properties != null && next < properties.length;
        }

        public FeatureDescriptor next() {
          PropertyDescriptor property = properties[next++];
          FeatureDescriptor feature = new FeatureDescriptor();
          feature.setDisplayName(property.getDisplayName());
          feature.setName(property.getName());
          feature.setShortDescription(property.getShortDescription());
          feature.setExpert(property.isExpert());
          feature.setHidden(property.isHidden());
          feature.setPreferred(property.isPreferred());
          feature.setValue(TYPE, property.getPropertyType());
          feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true);
          return feature;
        }

        public void remove() {
          throw new UnsupportedOperationException("cannot remove");
View Full Code Here

Examples of java.beans.FeatureDescriptor

    public static FeatureDescriptor getFeatureDescriptor(String name, String
        displayName, String desc, boolean expert, boolean hidden,
        boolean preferred, Object type, Boolean designTime) {
           
        FeatureDescriptor fd = new FeatureDescriptor();
        fd.setName(name);
        fd.setDisplayName(displayName);
        fd.setShortDescription(desc);
        fd.setExpert(expert);
        fd.setHidden(hidden);
        fd.setPreferred(preferred);
        fd.setValue(ELResolver.TYPE, type);
        fd.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, designTime);
        return fd;
    }
View Full Code Here

Examples of java.beans.FeatureDescriptor

    public static FeatureDescriptor getFeatureDescriptor(String name, String
        displayName, String desc, boolean expert, boolean hidden,
        boolean preferred, Object type, Boolean designTime) {
           
        FeatureDescriptor fd = new FeatureDescriptor();
        fd.setName(name);
        fd.setDisplayName(displayName);
        fd.setShortDescription(desc);
        fd.setExpert(expert);
        fd.setHidden(hidden);
        fd.setPreferred(preferred);
        fd.setValue(ELResolver.TYPE, type);
        fd.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, designTime);
        return fd;
    }
View Full Code Here

Examples of java.beans.FeatureDescriptor

                "Represents the current flash scope", Object.class));

        if (base instanceof Flash) {
            Iterator itr = ((Flash) base).keySet().iterator();
            Object key;
            FeatureDescriptor desc;
            while (itr.hasNext()) {
                key = itr.next();
                desc = makeDescriptor(key.toString(), key.toString(), key.getClass());
                descriptors.add(desc);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.