|
What this is
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-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.tasklist.suggestions.settings; import java.beans.*; import java.util.ResourceBundle; import java.awt.*; import org.openide.util.NbBundle; import org.openide.util.Utilities; public class ManagerSettingsBeanInfo extends SimpleBeanInfo { // Bean descriptor //GEN-FIRST:BeanDescriptor /*lazy BeanDescriptor*/ private static BeanDescriptor getBdescriptor(){ BeanDescriptor beanDescriptor = new BeanDescriptor ( ManagerSettings.class , null ); beanDescriptor.setExpert ( true );//GEN-HEADEREND:BeanDescriptor // Here you can add code for customizing the BeanDescriptor. beanDescriptor.setDisplayName(NbBundle.getBundle(ManagerSettings.class).getString("BK0007")); beanDescriptor.setShortDescription(NbBundle.getBundle(ManagerSettings.class).getString("BK0008")); return beanDescriptor; }//GEN-LAST:BeanDescriptor // Property identifiers //GEN-FIRST:Properties private static final int PROPERTY_editScanDelay = 0; private static final int PROPERTY_node = 1; private static final int PROPERTY_saveScanDelay = 2; private static final int PROPERTY_scanOnEdit = 3; private static final int PROPERTY_scanOnSave = 4; private static final int PROPERTY_scanOnShow = 5; private static final int PROPERTY_showScanDelay = 6; // Property array /*lazy PropertyDescriptor*/ private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[7]; try { properties[PROPERTY_editScanDelay] = new PropertyDescriptor ( "editScanDelay", ManagerSettings.class, "getEditScanDelay", "setEditScanDelay" ); properties[PROPERTY_editScanDelay].setExpert ( true ); properties[PROPERTY_node] = new PropertyDescriptor ( "node", ManagerSettings.class, "getNode", null ); properties[PROPERTY_node].setHidden ( true ); properties[PROPERTY_saveScanDelay] = new PropertyDescriptor ( "saveScanDelay", ManagerSettings.class, "getSaveScanDelay", "setSaveScanDelay" ); properties[PROPERTY_saveScanDelay].setExpert ( true ); properties[PROPERTY_scanOnEdit] = new PropertyDescriptor ( "scanOnEdit", ManagerSettings.class, "isScanOnEdit", null ); properties[PROPERTY_scanOnEdit].setHidden ( true ); properties[PROPERTY_scanOnSave] = new PropertyDescriptor ( "scanOnSave", ManagerSettings.class, "isScanOnSave", null ); properties[PROPERTY_scanOnSave].setHidden ( true ); properties[PROPERTY_scanOnShow] = new PropertyDescriptor ( "scanOnShow", ManagerSettings.class, "isScanOnShow", null ); properties[PROPERTY_scanOnShow].setHidden ( true ); properties[PROPERTY_showScanDelay] = new PropertyDescriptor ( "showScanDelay", ManagerSettings.class, "getShowScanDelay", "setShowScanDelay" ); properties[PROPERTY_showScanDelay].setExpert ( true ); } catch( IntrospectionException e) {}//GEN-HEADEREND:Properties ResourceBundle bundle = NbBundle.getBundle(ManagerSettingsBeanInfo.class); properties[PROPERTY_showScanDelay].setName(bundle.getString("BK0001")); properties[PROPERTY_showScanDelay].setShortDescription(bundle.getString("BK0002")); properties[PROPERTY_editScanDelay].setName(bundle.getString("BK0003")); properties[PROPERTY_editScanDelay].setShortDescription(bundle.getString("BK0004")); properties[PROPERTY_saveScanDelay].setName(bundle.getString("BK0005")); properties[PROPERTY_saveScanDelay].setShortDescription(bundle.getString("BK0006")); return properties; }//GEN-LAST:Properties // EventSet identifiers//GEN-FIRST:Events // EventSet array /*lazy EventSetDescriptor*/ private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events // Here you can add code for customizing the event sets array. return eventSets; }//GEN-LAST:Events // Method identifiers //GEN-FIRST:Methods // Method array private static MethodDescriptor[] methods = new MethodDescriptor[0]; private static MethodDescriptor[] getMdescriptor(){ return methods; } //GEN-HEADEREND:Methods // Here you can add code for customizing the methods array. //GEN-LAST:Methods private static final int defaultPropertyIndex = -1;//GEN-BEGIN:Idx private static final int defaultEventIndex = -1;//GEN-END:Idx //GEN-FIRST:Superclass // Here you can add code for customizing the Superclass BeanInfo. //GEN-LAST:Superclass /** * Gets the bean's |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 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.