All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.net.SMTPSessionCustomizer

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

public class SMTPSessionCustomizer
extends NetBeansCustomizer
Sample customizer for the SMTPSession bean.

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

See Also:
SMTPSession, SMTPSessionBeanInfo

Constructor Index

 o SMTPSessionCustomizer()
Default Constructor creates a Panel

Method Index

 o actionPerformed(ActionEvent)
Handles any action on this customizer.
 o createCustomPanels()
Creates the customized panels for the SMTPSession.
 o getMinimumSize()
Returns the preferred size of the SMTPCustomizer dialog.
 o getObject()
Returns the SMTPSession object that we are customizing.
 o getPreferredSize()
Returns the preferred size of the SMTPCustomizer dialog.
 o initCustomizedFields()
Initializes the text fields based on the client's (the SMTPSession object) properties.
 o logon()
Logging on is not required for the SMTP session.
 o performCommand(String)
SMTP session does not perform any commands excepting sending mail, which is initiated by the "Send Mail" button
 o setObject(Object)
The Bean Tester will call us (since we are the customizer) to set the object we are customizing.

Constructors

 o SMTPSessionCustomizer
 public SMTPSessionCustomizer()
Default Constructor creates a Panel

Methods

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

Overrides:
createCustomPanels in class NetBeansCustomizer
 o initCustomizedFields
 protected void initCustomizedFields()
Initializes the text fields based on the client's (the SMTPSession 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 SMTP 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 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 SMTPSession object that we are customizing.

Overrides:
getObject in class NetBeansCustomizer
 o logon
 protected void logon()
Logging on is not required for the SMTP session.

Overrides:
logon in class NetBeansCustomizer
 o performCommand
 protected void performCommand(String cmdName)
SMTP session does not perform any commands excepting sending mail, which is initiated by the "Send Mail" button

Parameters:
cmdName - is the name of the command to perform.
Overrides:
performCommand in class NetBeansCustomizer
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the preferred size of the SMTPCustomizer dialog.

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

Overrides:
getPreferredSize in class NetBeansCustomizer

All Packages  Class Hierarchy  This Package  Previous  Next  Index