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
-
PrintDipCustomizer()
- Constructs a new Print Dip Customizer.
-
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.
-
itemStateChanged(ItemEvent)
- Receives selection events from the checkbox.
-
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.
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
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 PrintDip provided as input.
- Parameters:
- bean - The instance of the PrintDip 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.
itemStateChanged
public void itemStateChanged(ItemEvent evt)
- Receives selection events from the checkbox.
- 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