1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ParcelContentsFolderDataLoaderBeanInfo.java,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 package org
.openoffice
.netbeans
.modules
.office
.loader
;
33 import java
.awt
.Image
;
36 import org
.openide
.ErrorManager
;
37 import org
.openide
.util
.NbBundle
;
38 import org
.openide
.util
.Utilities
;
40 /** Description of {@link ParcelFolderDataLoader}.
44 public class ParcelContentsFolderDataLoaderBeanInfo
extends SimpleBeanInfo
{
46 // If you have additional properties:
48 public PropertyDescriptor[] getPropertyDescriptors() {
50 PropertyDescriptor myProp = new PropertyDescriptor("myProp", ParcelFolderDataLoader.class);
51 myProp.setDisplayName(NbBundle.getMessage(ParcelFolderDataLoaderBeanInfo.class, "PROP_myProp"));
52 myProp.setShortDescription(NbBundle.getMessage(ParcelFolderDataLoaderBeanInfo.class, "HINT_myProp"));
53 return new PropertyDescriptor[] {myProp};
54 } catch (IntrospectionException ie) {
55 ErrorManager.getDefault().notify(ie);
61 public BeanInfo
[] getAdditionalBeanInfo() {
63 // I.e. MultiFileLoader.class or UniFileLoader.class.
64 return new BeanInfo
[] {Introspector
.getBeanInfo(ParcelContentsFolderDataLoader
.class.getSuperclass())};
65 } catch (IntrospectionException ie
) {
66 ErrorManager
.getDefault().notify(ie
);
71 public Image
getIcon(int type
) {
72 if (type
== BeanInfo
.ICON_COLOR_16x16
|| type
== BeanInfo
.ICON_MONO_16x16
) {
73 return Utilities
.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelFolderDataIcon.gif");
75 return Utilities
.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelFolderDataIcon32.gif");