You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.composition.AddressDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----grendel.composition.AddressDialog

class  AddressDialog
     extends java.awt.Dialog
     implements java.awt.event.ActionListener
{
          // Fields 7
     private final int BUTTON_HEIGHT;
     private final int BUTTON_WIDTH;
     final Object[][] data;
     private Vector mAddresses;
     private List mSendToList;
     private JTable mTable;
     private boolean wasCanceled;

          // Constructors 1
     AddressDialog(Frame);

          // Methods 12
     public void actionPerformed(ActionEvent);
     private void addToSendList(Addressee);
     private JPanel createBottomPanel();
     private JPanel createLookupPanel();
     private JPanel createSendToPanel();
     public Addressee[] getAddresses();
     public boolean getCanceled();
     public Insets getInsets();
     public static void main(String[]);
     private JButton makeButton(String, int, int);
     private void removeFromSendList(int);
     public void setAddresses(Addressee[]);
}



Fields


BUTTON_WIDTH

   private final int BUTTON_WIDTH


BUTTON_HEIGHT

   private final int BUTTON_HEIGHT


mSendToList

   private List mSendToList


mTable

   private JTable mTable


mAddresses

   private Vector mAddresses


wasCanceled

   private boolean wasCanceled


data

   final Object[][] data



Constructors


AddressDialog

   AddressDialog(Frame aParent) 




Methods


main

   public static void main(String[] args) 


createLookupPanel

   private JPanel createLookupPanel() 



createSendToPanel

   private JPanel createSendToPanel() 

The Send To Panel holds the list people.



createBottomPanel

   private JPanel createBottomPanel() 

The bottom panel has the ok, cancel and help buttons.



makeButton

   private JButton makeButton(String aLabel, 
                              int aWidth, 
                              int aHeight) 


getInsets

   public Insets getInsets() 
Overrides:
getInsets in class Container


addToSendList

   private void addToSendList(Addressee aAddressee) 

Adds an entry to the send list.

Parameter Description
The Addressee to be added to the list.



removeFromSendList

   private void removeFromSendList(int aIndex) 

Removes the specified entry from the list.

Parameter Description
The index of the entry to remove.



setAddresses

   public void setAddresses(Addressee[] aAddresses) 

Sets the address from aa Array.

Parameter Description
aAddresses An array of addresses.

See Also: getAddresses



getAddresses

   public Addressee[] getAddresses() 

Returns the addresses in the form of an array.

See Also: setAddresses



getCanceled

   public boolean getCanceled() 

Return true if cancel was pressed.



actionPerformed

   public void actionPerformed(ActionEvent e) 

Actions to respond to are button pressed for "To", "Cc", "Bcc", "Ok", and "Canel"

Implements:
actionPerformed in interface ActionListener


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4