All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.samples.media.AudioPlayerCustomizer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----com.ibm.beans.samples.media.AudioPlayerCustomizer
- public class AudioPlayerCustomizer
- extends Panel
- implements Customizer, TextListener, ActionListener
The AudioPlayerCustomizer allows the user of the AudioPlayer to specify
the audio clip to be played, by providing a descriptive label, an entry
field, and a "Browse" button which will pop up a file dialog.
- See Also:
- AudioPlayer
-
AudioPlayerCustomizer()
- Constructs a new Audio Player Customizer.
-
actionPerformed(ActionEvent)
- Receives button clicks from the "Browse" button.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a listener to be notified when the customizer changes
one of the bean's properties.
-
getMinimumSize()
- Returns the smallest width and height at which this panel can be displayed
with all of its AWT controls visible.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes a listener from the notification list.
-
setObject(Object)
- Sets the object instance with which this customizer is to interact.
-
textValueChanged(TextEvent)
- Receives keystrokes from the text fields.
AudioPlayerCustomizer
public AudioPlayerCustomizer()
- Constructs a new Audio Player Customizer. All of the AWT controls for
the customizer panel are created here. These controls are initialized
in setObject.
- See Also:
- setObject
getMinimumSize
public Dimension getMinimumSize()
- Returns the smallest width and height at which this panel can be displayed
with all of its AWT controls visible.
- Returns:
- A Dimension structure containing this panel's minimum width and height
- Overrides:
- getMinimumSize in class Container
setObject
public void setObject(Object bean)
- Sets the object instance with which this customizer is to interact.
This is where each of the AWT controls (created in the constructor
method) are initialized, based on the values of the properties
associated with the instance of the AudioPlayer provided as input.
- Parameters:
- bean - The instance of the AudioPlayer to customize.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a listener to be notified when the customizer changes
one of the bean's properties.
- Parameters:
- listener - The object to be notified of changes.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Removes a listener from the notification list.
- Parameters:
- listener - The object to be removed from the notification list.
actionPerformed
public void actionPerformed(ActionEvent evt)
- Receives button clicks from the "Browse" button.
- Parameters:
- evt - Describes the event that occurred.
textValueChanged
public void textValueChanged(TextEvent evt)
- Receives keystrokes from the text fields.
- Parameters:
- evt - Describes the event that occurred.
All Packages Class Hierarchy This Package Previous Next Index