All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.net.POP3CommandsPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----COM.taligent.widget.BorderPanel
                                   |
                                   +----COM.ibm.beans.net.POP3CommandsPanel

public class POP3CommandsPanel
extends BorderPanel
implements ListboxListener
This class defines a customized BorderPanel panel. It creates, and handles events for, components that display the POP3 specific information, viz., 1. the choice list of POP3 commands 2. the message number for the POP3 command, e.g. for retrieving a msg or deleting it 3. the number of lines to retrieve, of a message. It handles item selection in the POP3 commands list, by enabling and disabling the fields relevant for the command. It also provides convenience methods to clear and set field values, and for validating the user input.


Constructor Index

 o POP3CommandsPanel(String)

Method Index

 o addMessage(String[])
Adds a row containing the details of an incoming mail msg, viz.
 o clearAll()
Clears all the input fields to blanks.
 o 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.
 o deleteSelectedMsgs()
Removes the messages specified (by message number) from the MultiColumnListbox and refreshes the list.
 o getMessagesList()
Returns the MultiColumnListbox containing the listed messages, in this panel.
 o getSelectedMail()
Returns the message numbers of the messages that are selected in the list of messages, in this panel.
 o hideStatus()
Hide the status area of the panel.
 o removeAllMessages()
Removes all the messages from the MultiColumnListbox, and removes all the text from the text area that is displaying the text of a selected message.
 o rowDeselected(ListboxEvent)
Listbox Listener interface method, for when a row in the Listbox is deselected.
 o rowSelected(ListboxEvent)
ListboxListener interface method, for when a row in the Listbox is selected by a double-click.
 o showMessage(BufferedReader)
Displays the text of the selected message in the TextArea that is shown below the list of all messages.
 o showStatus(String)
Show a status message in the status area of the panel.

Constructors

 o POP3CommandsPanel
 public POP3CommandsPanel(String title)

Methods

 o 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.
 o clearAll
 public void clearAll()
Clears all the input fields to blanks.

 o rowSelected
 public void rowSelected(ListboxEvent le)
ListboxListener interface method, for when a row in the Listbox is selected by a double-click. Passes this event up to the Customizer to retrieve the selected newsgroup article's text and display it in the Text Area.

Parameters:
le - is the ListboxEvent that was generated. It contains information about the source of the event, and the type of the event.
 o rowDeselected
 public void rowDeselected(ListboxEvent le)
Listbox Listener interface method, for when a row in the Listbox is deselected. It takes no action on row deselection.

Parameters:
le - is the ListboxEvent that was generated. It contains information about the source of the event, and the type of the event.
 o getSelectedMail
 public int[] getSelectedMail()
Returns the message numbers of the messages that are selected in the list of messages, in this panel.

 o getMessagesList
 public MultiColumnListbox getMessagesList()
Returns the MultiColumnListbox containing the listed messages, in this panel.

 o deleteSelectedMsgs
 public void deleteSelectedMsgs()
Removes the messages specified (by message number) from the MultiColumnListbox and refreshes the list.

 o removeAllMessages
 public void removeAllMessages()
Removes all the messages from the MultiColumnListbox, and removes all the text from the text area that is displaying the text of a selected message.

 o addMessage
 public void addMessage(String message[])
Adds a row containing the details of an incoming mail msg, viz. it's sender, date, subject to the listbox, as one row.

Parameters:
message - is an array of strings that contains the message's details.
 o showMessage
 public void showMessage(BufferedReader message)
Displays the text of the selected message in the TextArea that is shown below the list of all messages.

Parameters:
message - is the message that was read by the Customizer, when the user selected it from a list.
 o showStatus
 public void showStatus(String status)
Show a status message in the status area of the panel.

Parameters:
status - the status text to be displayed under the panel.
 o hideStatus
 public void hideStatus()
Hide the status area of the panel.


All Packages  Class Hierarchy  This Package  Previous  Next  Index