Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
java.beans

Class SimpleBeanInfo

  • All Implemented Interfaces:
    BeanInfo

    public class SimpleBeanInfo
    extends Object
    implements BeanInfo
    This is a support class to make it easier for people to provide BeanInfo classes.

    It defaults to providing "noop" information, and can be selectively overriden to provide more explicit information on chosen topics. When the introspector sees the "noop" values, it will apply low level introspection and design patterns to automatically analyze the target bean.

    • Constructor Detail

      • SimpleBeanInfo

        public SimpleBeanInfo()
    • Method Detail

      • getBeanDescriptor

        public BeanDescriptor getBeanDescriptor()
        Deny knowledge about the class and customizer of the bean. You can override this if you wish to provide explicit info.
        Specified by:
        getBeanDescriptor in interface BeanInfo
        Returns:
        A BeanDescriptor providing overall information about the bean, such as its displayName, its customizer, etc. May return null if the information should be obtained by automatic analysis.
      • getPropertyDescriptors

        public PropertyDescriptor[] getPropertyDescriptors()
        Deny knowledge of properties. You can override this if you wish to provide explicit property info.
        Specified by:
        getPropertyDescriptors in interface BeanInfo
        Returns:
        an array of PropertyDescriptors describing all properties supported by the bean or null
      • getDefaultPropertyIndex

        public int getDefaultPropertyIndex()
        Deny knowledge of a default property. You can override this if you wish to define a default property for the bean.
        Specified by:
        getDefaultPropertyIndex in interface BeanInfo
        Returns:
        Index of default property in the PropertyDescriptor array returned by getPropertyDescriptors.

        Returns -1 if there is no default property.

      • getEventSetDescriptors

        public EventSetDescriptor[] getEventSetDescriptors()
        Deny knowledge of event sets. You can override this if you wish to provide explicit event set info.
        Specified by:
        getEventSetDescriptors in interface BeanInfo
        Returns:
        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.
      • getDefaultEventIndex

        public int getDefaultEventIndex()
        Deny knowledge of a default event. You can override this if you wish to define a default event for the bean.
        Specified by:
        getDefaultEventIndex in interface BeanInfo
        Returns:
        Index of default event in the EventSetDescriptor array returned by getEventSetDescriptors.

        Returns -1 if there is no default event.

      • getMethodDescriptors

        public MethodDescriptor[] getMethodDescriptors()
        Deny knowledge of methods. You can override this if you wish to provide explicit method info.
        Specified by:
        getMethodDescriptors in interface BeanInfo
        Returns:
        An array of MethodDescriptors describing the externally visible methods supported by this bean. May return null if the information should be obtained by automatic analysis.
      • getAdditionalBeanInfo

        public BeanInfo[] getAdditionalBeanInfo()
        Claim there are no other relevant BeanInfo objects. You may override this if you want to (for example) return a BeanInfo for a base class.
        Specified by:
        getAdditionalBeanInfo in interface BeanInfo
        Returns:
        an array of BeanInfo objects. May return null.
      • getIcon

        public Image getIcon(int iconKind)
        Claim there are no icons available. You can override this if you want to provide icons for your bean.
        Specified by:
        getIcon in interface BeanInfo
        Parameters:
        iconKind - The kind of icon requested. This should be one of the constant values ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, or ICON_MONO_32x32.
        Returns:
        An image object representing the requested icon. May return null if no suitable icon is available.
      • loadImage

        public Image loadImage(String resourceName)
        This is a utility method to help in loading icon images. It takes the name of a resource file associated with the current object's class file and loads an image object from that file. Typically images will be GIFs.

        Parameters:
        resourceName - A pathname relative to the directory holding the class file of the current class. For example, "wombat.gif".
        Returns:
        an image object. May be null if the load failed.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/beans/SimpleBeanInfo.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut