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.
-
POP3CommandsPanel(String)
-
-
addMessage(String[])
- Adds a row containing the details of an incoming mail msg, viz.
-
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.
-
deleteSelectedMsgs()
- Removes the messages specified (by message number) from the MultiColumnListbox
and refreshes the list.
-
getMessagesList()
- Returns the MultiColumnListbox containing the listed
messages, in this panel.
-
getSelectedMail()
- Returns the message numbers of the messages that are selected in the list
of messages, in this panel.
-
hideStatus()
- Hide the status area of the panel.
-
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.
-
rowDeselected(ListboxEvent)
- Listbox Listener interface method, for when a row in the Listbox
is deselected.
-
rowSelected(ListboxEvent)
- ListboxListener interface method, for when a row in the Listbox
is selected by a double-click.
-
showMessage(BufferedReader)
- Displays the text of the selected message in the TextArea that is
shown below the list of all messages.
-
showStatus(String)
- Show a status message in the status area of the panel.
POP3CommandsPanel
public POP3CommandsPanel(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.
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.
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.
getSelectedMail
public int[] getSelectedMail()
- Returns the message numbers of the messages that are selected in the list
of messages, in this panel.
getMessagesList
public MultiColumnListbox getMessagesList()
- Returns the MultiColumnListbox containing the listed
messages, in this panel.
deleteSelectedMsgs
public void deleteSelectedMsgs()
- Removes the messages specified (by message number) from the MultiColumnListbox
and refreshes the list.
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.
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.
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.
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.
hideStatus
public void hideStatus()
- Hide the status area of the panel.
All Packages Class Hierarchy This Package Previous Next Index