The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Class grendel.composition.AddressList.AddressPanel
All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.composition.AddressList.AddressPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----grendel.composition.AddressList.AddressPanel


public class  AddressList.AddressPanel
     extends com.sun.java.swing.JPanel
     implements java.awt.event.KeyListener
{
          // Fields 3
     private Dimension mAddLineSize;
     protected Vector mAddressees;
     private Dimension mPerfSize;

          // Constructors 1
     public AddressPanel();

          // Methods 12
     private synchronized void addAddresseLine(Addressee);
     public void addNotify();
     public void doLayout();
     private void focusOnLast();
     public Dimension getPreferredSize();
     public void keyPressed(KeyEvent);
     public void keyReleased(KeyEvent);
     public void keyTyped(KeyEvent);
     public void paint(Graphics);
     private synchronized void removeAddressLine(AddressLine);
     private synchronized void removeAllAddressLines();
     private void repack();
}



Fields


mAddressees

   protected Vector mAddressees


mAddLineSize

   private Dimension mAddLineSize


mPerfSize

   private Dimension mPerfSize



Constructors


AddressPanel

   public AddressPanel() 



Methods


doLayout

   public void doLayout() 

layout Addressee lines.

Overrides:
doLayout in class Container


addNotify

   public void addNotify() 
Overrides:
addNotify in class JComponent


getPreferredSize

   public Dimension getPreferredSize() 

Returns the preferred size. The preferred size of the panel is 4 AddressLines tall and full parent width.

Overrides:
getPreferredSize in class JComponent


addAddresseLine

   private synchronized void addAddresseLine(Addressee aAddressee) 

Adds a new address line to the list.

Parameter Description
aAddressee the Addresee you which to add.

See Also: removeAddressLine



repack

   private void repack() 

Remove any blank lines from the middle and appends a single blank line to the list.



focusOnLast

   private void focusOnLast() 


removeAddressLine

   private synchronized void removeAddressLine(AddressLine aAddressLine) 

Removes an address line from the list.

Parameter Description
aAddressLine The address line you wish to remove.

See Also: addAddresseLine



removeAllAddressLines

   private synchronized void removeAllAddressLines() 

Removes all addressee lines.

See Also: removeAddressLine, addAddresseLine



keyReleased

   public void keyReleased(KeyEvent e) 

Resonds to keyboard events for navigation (up, down, enter, etc.)

Implements:
keyReleased in interface KeyListener

See Also: addAddresseLine



keyTyped

   public void keyTyped(KeyEvent e) 
Implements:
keyTyped in interface KeyListener


keyPressed

   public void keyPressed(KeyEvent e) 
Implements:
keyPressed in interface KeyListener


paint

   public void paint(Graphics g) 
Overrides:
paint in class JComponent


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
Copyright © 1998-2000 The Mozilla Organization.
Last modified December 25, 1998.