javax.media.bean.playerbean
Class MediaPlayerBeanInfo

java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--javax.media.bean.playerbean.MediaPlayerBeanInfo
All Implemented Interfaces:
java.beans.BeanInfo

public class MediaPlayerBeanInfo
extends java.beans.SimpleBeanInfo

Provides explicit bean information for the MediaPlayer. It provides descriptions of each property and indicates which MediaPlayer properties are bound. Invoked by JavaBeansTM application builders.


Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
MediaPlayerBeanInfo()
           
 
Method Summary
 java.beans.BeanDescriptor getBeanDescriptor()
          Gets the bean descriptor for this bean, which defines information about MediaPlayer such as its displayName.
 int getDefaultPropertyIndex()
          Gets the default property index for this bean.
 java.beans.EventSetDescriptor[] getEventSetDescriptors()
          Gets a list of the events fired by this bean.
 java.awt.Image getIcon(int ic)
          Gets the icon to be used in the bean tool for this bean.
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Gets a list of bean PropertyDescriptor objects, one for each public property in the MediaPlayer.
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaPlayerBeanInfo

public MediaPlayerBeanInfo()
Method Detail

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Gets a list of bean PropertyDescriptor objects, one for each public property in the MediaPlayer.

Specified by:
getPropertyDescriptors in interface java.beans.BeanInfo
Overrides:
getPropertyDescriptors in class java.beans.SimpleBeanInfo
Returns:
A PropertyDescriptor array that contains all of the bean property descriptors for this MediaPlayer.

getDefaultPropertyIndex

public int getDefaultPropertyIndex()
Gets the default property index for this bean. The "mediaLocation" property is the default property for the MediaPlayer.

Specified by:
getDefaultPropertyIndex in interface java.beans.BeanInfo
Overrides:
getDefaultPropertyIndex in class java.beans.SimpleBeanInfo
Returns:
The default property index for the bean.

getBeanDescriptor

public java.beans.BeanDescriptor getBeanDescriptor()
Gets the bean descriptor for this bean, which defines information about MediaPlayer such as its displayName.

Specified by:
getBeanDescriptor in interface java.beans.BeanInfo
Overrides:
getBeanDescriptor in class java.beans.SimpleBeanInfo
Returns:
The BeanDescriptor for MediaPlayer.

getEventSetDescriptors

public java.beans.EventSetDescriptor[] getEventSetDescriptors()
Gets a list of the events fired by this bean.

Specified by:
getEventSetDescriptors in interface java.beans.BeanInfo
Overrides:
getEventSetDescriptors in class java.beans.SimpleBeanInfo
Returns:
An array of EventSetDescriptor objects that describes the kinds of events fired by this bean.

getIcon

public java.awt.Image getIcon(int ic)
Gets the icon to be used in the bean tool for this bean.

Specified by:
getIcon in interface java.beans.BeanInfo
Overrides:
getIcon in class java.beans.SimpleBeanInfo
Parameters:
ic - Indicates the format for the icon image. The valid format constants are defined in SimpleBeanInfo: ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, and ICON_MONO_16x16.
Returns:
The icon to be used as an AWT Image.