All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.net.SMTPCommandsPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----COM.taligent.widget.BorderPanel
|
+----COM.ibm.beans.net.SMTPCommandsPanel
- public class SMTPCommandsPanel
- extends BorderPanel
This class defines a customized BorderPanel panel.
It creates, and handles events for, components that display the
SMTP specific information, viz.,
1. the recipient of the message to be sent
2. the CC recipients of the message to be sent
3. subject line of the message to be sent
4. the text area for composing the message to be sent.
It also provides convenience methods to clear and set field values,
and for validating the user input.
-
SMTPCommandsPanel(String)
-
-
clearAll()
- Clears all the input fields to blanks.
-
constrain(Container, Component, int, int, int, int, int, int, double, double)
- This method creates an instance of GridBagConstraints, and sets the
constraints for the component specified, based on the constraint values
passed in.
-
getCcRecip()
- Returns the value in the CC recipients field .
-
getMail()
- Returns the text in the mail composition area.
-
getRecip()
- Returns the value in the recipient field .
-
getRecipients()
- Returns one combined list of all the recipients, from the main recipient
field and the CC recipients field.
-
getSubject()
- Returns the value in the subject field .
-
validateInput()
- Validates the input fields in the context of sending
mail.
SMTPCommandsPanel
public SMTPCommandsPanel(String title)
constrain
public void constrain(Container container,
Component component,
int gridX,
int gridY,
int gridW,
int gridH,
int fill,
int anchor,
double weightX,
double weightY)
- This method creates an instance of GridBagConstraints, and sets the
constraints for the component specified, based on the constraint values
passed in.
- Parameters:
- container - is the container into which this component is to be placed
- component - is the component being added to the specified container
- gridX - is the cell at the left of the component's display area
- gridY - is the cell at the top of the component's display area
- gridW - is the number of cells in a row for the component's display area
- gridH - is the number of cells in a column for the component's display area
- fill - is the value used to determine whether the component needs to be
resized, and if so, how
- anchor - is the field used to determine where to place the component in the
display area, e.g. CENTER, EAST, SOUTH etc.
- weightX - specifies how to distribute extra vertical space in the display
area where the component is to be displayed.
- weightY - specifies how to distribute extra horizontal space in the display
area where the component is to be displayed.
clearAll
public void clearAll()
- Clears all the input fields to blanks.
getRecip
public String getRecip()
- Returns the value in the recipient field .
getCcRecip
public String getCcRecip()
- Returns the value in the CC recipients field .
getSubject
public String getSubject()
- Returns the value in the subject field .
getMail
public String getMail()
- Returns the text in the mail composition area.
getRecipients
public String[] getRecipients()
- Returns one combined list of all the recipients, from the main recipient
field and the CC recipients field.
validateInput
public boolean validateInput()
- Validates the input fields in the context of sending
mail.
Returns true if the input is valid, false otherwise.
All Packages Class Hierarchy This Package Previous Next Index