All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.net.POP3SessionCustomizer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----COM.ibm.beans.net.NetBeansCustomizer
                                   |
                                   +----COM.ibm.beans.net.POP3SessionCustomizer

public class POP3SessionCustomizer
extends NetBeansCustomizer
implements ActionListener, ListboxListener
Sample customizer for the POP3Session bean.

 Copyright (c) Taligent, Inc.  1996 - 1997.
 Copyright (c) IBM Corporation 1996 - 1997.
 All Rights Reserved.
 

See Also:
POP3Session, POP3SessionBeanInfo

Constructor Index

 o POP3SessionCustomizer()
Default Constructor creates a Panel

Method Index

 o actionPerformed(ActionEvent)
Handles any action on this customizer.
 o createCustomPanels()
Creates the customized panels for the POP3Session.
 o getMinimumSize()
Returns the preferred size of the POP3Customizer dialog.
 o getObject()
Returns the POP3Session object that we are customizing.
 o getPreferredSize()
Returns the preferred size of the POP3Customizer dialog.
 o initCustomizedFields()
Initializes the text fields based on the client's (the POP3Session object) properties.
 o logon()
Try to logon to the specified server.
 o performCommand(String)
Performs the requested command.
 o rowDeselected(ListboxEvent)
 o rowSelected(ListboxEvent)
When an article is double-clicked on, in the multicolumn list box, (of msgs) in the CommandPanel, this method is called by the Commands Panel to notify us of the event.
 o setObject(Object)
The Bean Tester will call us (since we are the customizer) to set the object we are customizing.

Constructors

 o POP3SessionCustomizer
 public POP3SessionCustomizer()
Default Constructor creates a Panel

Methods

 o createCustomPanels
 protected void createCustomPanels()
Creates the customized panels for the POP3Session. The Network Preferences panel contains the server, user, and password fields while the Command Preferences panel contains all the fields required for POP3 commands.

Overrides:
createCustomPanels in class NetBeansCustomizer
 o initCustomizedFields
 protected void initCustomizedFields()
Initializes the text fields based on the client's (the POP3Session object) properties.

Overrides:
initCustomizedFields in class NetBeansCustomizer
 o actionPerformed
 public void actionPerformed(ActionEvent event)
Handles any action on this customizer. If the Apply button was pressed, the selected command from the list of POP3 commands is executed using the text field settings for file and directory names as the parameters .

Parameters:
event - is the ActionEvent that was fired
Overrides:
actionPerformed in class NetBeansCustomizer
 o performCommand
 protected void performCommand(String cmdName)
Performs the requested command. The client object is called to do all the work. We report the outcome.

Parameters:
cmdName - is the name of the command to perform.
Overrides:
performCommand in class NetBeansCustomizer
 o logon
 protected void logon()
Try to logon to the specified server. All logon parameter validation is done by the POP3Client. If we fail, reset our flag (for logged on), just so we can logon again before the next command is attempted.

Overrides:
logon in class NetBeansCustomizer
 o rowSelected
 public void rowSelected(ListboxEvent le)
When an article is double-clicked on, in the multicolumn list box, (of msgs) in the CommandPanel, this method is called by the Commands Panel to notify us of the event. For that message, we get the text, and ask the Commands Panel to display the text of the message in a TextArea component.

 o rowDeselected
 public void rowDeselected(ListboxEvent le)
 o setObject
 public void setObject(Object obj)
The Bean Tester will call us (since we are the customizer) to set the object we are customizing.

Parameters:
obj - is the object to customize
Overrides:
setObject in class NetBeansCustomizer
 o getObject
 public Object getObject()
Returns the POP3Session object that we are customizing.

Overrides:
getObject in class NetBeansCustomizer
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the preferred size of the POP3Customizer dialog.

Overrides:
getMinimumSize in class Container
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of the POP3Customizer dialog.

Overrides:
getPreferredSize in class NetBeansCustomizer

All Packages  Class Hierarchy  This Package  Previous  Next  Index