alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 *                 Sun Public License Notice
 *
 * The contents of this file are subject to the Sun Public License
 * Version 1.0 (the "License"). You may not use this file except in
 * compliance with the License. A copy of the License is available at
 * http://www.sun.com/
 *
 * The Original Code is NetBeans. The Initial Developer of the Original
 * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
 * Microsystems, Inc. All Rights Reserved.
 */
package org.netbeans.modules.javacvs.commands;

import java.beans.*;
import org.netbeans.modules.javacvs.customizers.AnnotateParamInput;
import org.openide.util.*;

    /** Description of the CvsAnnotate class.
     */
    public class CvsAnnotate$AnnotateImplBeanInfo extends SimpleBeanInfo {
        
        
        private  int defaultPropertyIndex = -1;
        private  int defaultEventIndex = -1;
        
        public BeanInfo[] getAdditionalBeanInfo() {
/*        try {
            return new BeanInfo[] { Introspector.getBeanInfo (FileSystemCommand.class) };
        } catch (IntrospectionException ie) {
            org.openide.ErrorManager.getDefault().notify(ie);
            return null;
        }
 */
            return null;
        }
        
        /**
         * Gets the bean's BeanDescriptors.
         *
         * @return BeanDescriptor describing the editable
         * properties of this bean.  May return null if the
         * information should be obtained by automatic analysis.
         */
        public BeanDescriptor getBeanDescriptor() {
            BeanDescriptor bd = new BeanDescriptor(CvsAnnotate.AnnotateImpl.class, AnnotateParamInput.class);
            bd.setDisplayName(NbBundle.getMessage(CvsAnnotate.class, "CvsAnnotate.BeanName"));  // NOI18N
            return bd;
        }
        
        /**
         * Gets the bean's PropertyDescriptors.
         *
         * @return An array of PropertyDescriptors describing the editable
         * properties supported by this bean.  May return null if the
         * information should be obtained by automatic analysis.
         * 

* If a property is indexed, then its entry in the result array will * belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor. * A client of getPropertyDescriptors can use "instanceof" to check * if a given PropertyDescriptor is an IndexedPropertyDescriptor. */ public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor recursive = new PropertyDescriptor("recursive", CvsAnnotate.AnnotateImpl.class); // NOI18N recursive.setDisplayName(NbBundle.getMessage(CvsAnnotate.class, "PROP_recursive")); // NOI18N recursive.setShortDescription(NbBundle.getMessage(CvsAnnotate.class, "HINT_recursive")); // NOI18N PropertyDescriptor annotateByDate = new PropertyDescriptor("annotateByDate", CvsAnnotate.AnnotateImpl.class); // NOI18N annotateByDate.setDisplayName(NbBundle.getMessage(CvsAnnotate.class, "PROP_annotateByDate")); // NOI18N annotateByDate.setShortDescription(NbBundle.getMessage(CvsAnnotate.class, "HINT_annotateByDate")); // NOI18N PropertyDescriptor annotateByRevision = new PropertyDescriptor("annotateByRevision", CvsAnnotate.AnnotateImpl.class); // NOI18N annotateByRevision.setDisplayName(NbBundle.getMessage(CvsAnnotate.class, "PROP_annotateByRevision")); // NOI18N annotateByRevision.setShortDescription(NbBundle.getMessage(CvsAnnotate.class, "HINT_annotateByRevision")); // NOI18N PropertyDescriptor useHeadIfNotFound = new PropertyDescriptor("useHeadIfNotFound", CvsAnnotate.AnnotateImpl.class); // NOI18N useHeadIfNotFound.setDisplayName(NbBundle.getMessage(CvsAnnotate.class, "PROP_useHeadIfNotFound")); // NOI18N useHeadIfNotFound.setShortDescription(NbBundle.getMessage(CvsAnnotate.class, "HINT_useHeadIfNotFound")); // NOI18N return new PropertyDescriptor[] { recursive, annotateByDate, annotateByRevision, useHeadIfNotFound }; } catch (IntrospectionException ie) { org.openide.ErrorManager.getDefault().notify(ie); return null; } } /** * Gets the bean's EventSetDescriptors. * * @return An array of EventSetDescriptors describing the kinds of * events fired by this bean. May return null if the information * should be obtained by automatic analysis. */ public EventSetDescriptor[] getEventSetDescriptors() { return null; } /** * Gets the bean's MethodDescriptors. * * @return An array of MethodDescriptors describing the methods * implemented by this bean. May return null if the information * should be obtained by automatic analysis. */ public MethodDescriptor[] getMethodDescriptors() { return null; } /** * A bean may have a "default" property that is the property that will * mostly commonly be initially chosen for update by human's who are * customizing the bean. * @return Index of default property in the PropertyDescriptor array * returned by getPropertyDescriptors. *

Returns -1 if there is no default property. */ public int getDefaultPropertyIndex() { return defaultPropertyIndex; } /** * A bean may have a "default" event that is the event that will * mostly commonly be used by human's when using the bean. * @return Index of default event in the EventSetDescriptor array * returned by getEventSetDescriptors. *

Returns -1 if there is no default event. */ public int getDefaultEventIndex() { return defaultEventIndex; } }

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.