All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.samples.dips.print.PrintDipCustomizer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.beans.samples.dips.print.PrintDipCustomizer

public class PrintDipCustomizer
extends Panel
implements Customizer, TextListener, ItemListener

This class allows customization of the properties of the Print Dip. By using this customizer, the assembler or user can specify whether to show the floating frame, where it should appear, its size, what text to display in the Print button, the title bar text, the print job title, and so forth.

See Also:
PrintDip

Constructor Index

 o PrintDipCustomizer()
Constructs a new Print Dip Customizer.

Method Index

 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 itemStateChanged(ItemEvent)
Receives selection events from the checkbox.
 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 PrintDipCustomizer
 public PrintDipCustomizer()
Constructs a new Print Dip Customizer. All of the AWT controls for the customizer panel are created here. These controls are initialized in the setObject method.

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

Parameters:
bean - The instance of the PrintDip 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 itemStateChanged
 public void itemStateChanged(ItemEvent evt)
Receives selection events from the checkbox.

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