javax.media.bean.playerbean
Class MediaPlayerBeanInfo
java.lang.Object
|
+--java.beans.SimpleBeanInfo
|
+--javax.media.bean.playerbean.MediaPlayerBeanInfo
- 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.
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 |
MediaPlayerBeanInfo
public MediaPlayerBeanInfo()
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Gets a list of bean
PropertyDescriptor
objects, one for
each public property in the MediaPlayer
.
- 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
.
- 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
.
- 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.
- 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.
- 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
.
Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.