All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.samples.media.ImageViewerCustomizer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.beans.samples.media.ImageViewerCustomizer

public class ImageViewerCustomizer
extends Panel
implements Customizer, TextListener, ActionListener

The ImageViewerCustomizer allows the user of the ImageViewer to specify the image to be displayed, by providing a descriptive label, an entry field, and a "Browse" button which will pop up a file dialog.

See Also:
ImageViewer

Constructor Index

 o ImageViewerCustomizer()
Constructs a new Image Viewer Customizer.

Method Index

 o actionPerformed(ActionEvent)
Receives button clicks from the "Browse" button.
 o addPropertyChangeListener(PropertyChangeListener)
Adds a listener to be notified when the customizer changes one of the bean's properties.
 o getMinimumSize()
Returns the smallest width and height at which this panel can be displayed with all of its AWT controls visible.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a listener from the notification list.
 o setObject(Object)
Sets the object instance with which this customizer is to interact.
 o textValueChanged(TextEvent)
Receives keystrokes from the text fields.

Constructors

 o ImageViewerCustomizer
 public ImageViewerCustomizer()
Constructs a new Image Viewer Customizer. All of the AWT controls for the customizer panel are created here. These controls are initialized in setObject.

See Also:
setObject

Methods

 o 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
 o 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 ImageViewer provided as input.

Parameters:
bean - The instance of the ImageViewer to customize.
 o 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.
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener from the notification list.

Parameters:
listener - The object to be removed from the notification list.
 o actionPerformed
 public void actionPerformed(ActionEvent evt)
Receives button clicks from the "Browse" button.

Parameters:
evt - Describes the event that occurred.
 o 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