gnu.java.beans

Class ExplicitBeanInfo

Implemented Interfaces:
BeanInfo

public class ExplicitBeanInfo
extends Object
implements BeanInfo

ExplicitBeanInfo lets you specify in the constructor all the various parts of the BeanInfo.
See Also:
BeanInfo

Field Summary

protected BeanInfo[]
additionalBeanInfo
The BeanInfo array returned by getAdditionalBeanInfo().
protected BeanDescriptor
beanDescriptor
The BeanDescriptor returned by getBeanDescriptor.
protected int
defaultEventIndex
The default event index.
protected int
defaultPropertyIndex
The default property index.
protected EventSetDescriptor[]
eventSetDescriptors
The EventSetDescriptor array returned by getEventSetDescriptors().
protected Image[]
icons
The set of icons.
protected MethodDescriptor[]
methodDescriptors
The MethodDescriptor array returned by getMethodDescriptors().
protected PropertyDescriptor[]
propertyDescriptors
The PropertyDescriptor array returned by getPropertyDescriptors().

Fields inherited from interface java.beans.BeanInfo

ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32

Constructor Summary

ExplicitBeanInfo(BeanDescriptor beanDescriptor, BeanInfo[] additionalBeanInfo, PropertyDescriptor[] propertyDescriptors, int defaultPropertyIndex, EventSetDescriptor[] eventSetDescriptors, int defaultEventIndex, MethodDescriptor[] methodDescriptors, Image[] icons)

Method Summary

BeanInfo[]
getAdditionalBeanInfo()
Get additional Bean info.
BeanDescriptor
getBeanDescriptor()
Get Bean descriptor.
int
getDefaultEventIndex()
Get default event set.
int
getDefaultPropertyIndex()
Get "default" property.
EventSetDescriptor[]
getEventSetDescriptors()
Get Bean events.
Image
getIcon(int iconType)
Get Bean icons.
MethodDescriptor[]
getMethodDescriptors()
Get Bean methods.
PropertyDescriptor[]
getPropertyDescriptors()
Get Bean properties.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

additionalBeanInfo

protected BeanInfo[] additionalBeanInfo
The BeanInfo array returned by getAdditionalBeanInfo().

beanDescriptor

protected BeanDescriptor beanDescriptor
The BeanDescriptor returned by getBeanDescriptor. *

defaultEventIndex

protected int defaultEventIndex
The default event index. *

defaultPropertyIndex

protected int defaultPropertyIndex
The default property index. *

eventSetDescriptors

protected EventSetDescriptor[] eventSetDescriptors
The EventSetDescriptor array returned by getEventSetDescriptors().

icons

protected Image[] icons
The set of icons. *

methodDescriptors

protected MethodDescriptor[] methodDescriptors
The MethodDescriptor array returned by getMethodDescriptors().

propertyDescriptors

protected PropertyDescriptor[] propertyDescriptors
The PropertyDescriptor array returned by getPropertyDescriptors().

Constructor Details

ExplicitBeanInfo

public ExplicitBeanInfo(BeanDescriptor beanDescriptor,
                        BeanInfo[] additionalBeanInfo,
                        PropertyDescriptor[] propertyDescriptors,
                        int defaultPropertyIndex,
                        EventSetDescriptor[] eventSetDescriptors,
                        int defaultEventIndex,
                        MethodDescriptor[] methodDescriptors,
                        Image[] icons)

Method Details

getAdditionalBeanInfo

public BeanInfo[] getAdditionalBeanInfo()
Get additional Bean info. *
Specified by:
getAdditionalBeanInfo in interface BeanInfo

getBeanDescriptor

public BeanDescriptor getBeanDescriptor()
Get Bean descriptor. *
Specified by:
getBeanDescriptor in interface BeanInfo

getDefaultEventIndex

public int getDefaultEventIndex()
Get default event set. *
Specified by:
getDefaultEventIndex in interface BeanInfo

getDefaultPropertyIndex

public int getDefaultPropertyIndex()
Get "default" property. *
Specified by:
getDefaultPropertyIndex in interface BeanInfo

getEventSetDescriptors

public EventSetDescriptor[] getEventSetDescriptors()
Get Bean events. *
Specified by:
getEventSetDescriptors in interface BeanInfo

getIcon

public Image getIcon(int iconType)
Get Bean icons.
Specified by:
getIcon in interface BeanInfo
Parameters:
iconType - the type of icon

getMethodDescriptors

public MethodDescriptor[] getMethodDescriptors()
Get Bean methods. *
Specified by:
getMethodDescriptors in interface BeanInfo

getPropertyDescriptors

public PropertyDescriptor[] getPropertyDescriptors()
Get Bean properties. *
Specified by:
getPropertyDescriptors in interface BeanInfo

ExplicitBeanInfo.java -- Copyright (C) 1998, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.