The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Search
Feedback


Class grendel.composition.AddressList.DeliveryButton

All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.composition.AddressList.DeliveryButton

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

DeliveryButton displays "To:", "Cc:", etc and has a popup menu to change values.


public class  AddressList.DeliveryButton
     extends com.sun.java.swing.JPanel
     implements java.awt.event.MouseListener, 
                java.awt.event.FocusListener, 
                java.awt.event.ActionListener, 
                java.awt.event.KeyListener
{
          // Fields 4
     private int mDeliveryMode;
     private Insets mInsets;
     private Dimension mPerfSize;
     private PopupMenu mPopup;

          // Constructors 1
     public DeliveryButton(int);

          // Methods 20
     public void actionPerformed(ActionEvent);
     public void addNotify();
     private PopupMenu createPopup();
     public void focusGained(FocusEvent);
     public void focusLost(FocusEvent);
     protected int getDeliveryMode();
     public Dimension getMaximumSize();
     public Dimension getMinimumSize();
     public Dimension getPreferredSize();
     public boolean isFocusTraversable();
     public void keyPressed(KeyEvent);
     public void keyReleased(KeyEvent);
     public void keyTyped(KeyEvent);
     public void mouseClicked(MouseEvent);
     public void mouseEntered(MouseEvent);
     public void mouseExited(MouseEvent);
     public void mousePressed(MouseEvent);
     public void mouseReleased(MouseEvent);
     public void paint(Graphics);
     protected void setDeliveryMode(int);
}



Fields


mDeliveryMode

   private int mDeliveryMode


mPerfSize

   private Dimension mPerfSize


mInsets

   private Insets mInsets


mPopup

   private PopupMenu mPopup



Constructors


DeliveryButton

   public DeliveryButton(int aDeliveryMode) 



Methods


createPopup

   private PopupMenu createPopup() 

Creates the popup menu.



setDeliveryMode

   protected void setDeliveryMode(int aDeliveryMode) 


getDeliveryMode

   protected int getDeliveryMode() 


getMaximumSize

   public Dimension getMaximumSize() 
Overrides:
getMaximumSize in class JComponent


getMinimumSize

   public Dimension getMinimumSize() 
Overrides:
getMinimumSize in class JComponent


addNotify

   public void addNotify() 

addNotify creates the preferred size dimension because only after the peer has been created can we get the font metrics.

Overrides:
addNotify in class JComponent


getPreferredSize

   public Dimension getPreferredSize() 

Return PerfSize created in addNotify.

Overrides:
getPreferredSize in class JComponent


isFocusTraversable

   public boolean isFocusTraversable() 
Overrides:
isFocusTraversable in class JComponent


focusGained

   public void focusGained(FocusEvent evt) 

Display button highlight.

Implements:
focusGained in interface FocusListener


focusLost

   public void focusLost(FocusEvent evt) 

Remove button highlight.

Implements:
focusLost in interface FocusListener


paint

   public void paint(Graphics g) 

Paint the button's bevels and arrow and text string (i.e. "To:")

Overrides:
paint in class JComponent


keyReleased

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


keyTyped

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


keyPressed

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


actionPerformed

   public void actionPerformed(ActionEvent e) 

Called when popup menu item is selected.

Implements:
actionPerformed in interface ActionListener


mouseEntered

   public void mouseEntered(MouseEvent e) 
Implements:
mouseEntered in interface MouseListener


mouseExited

   public void mouseExited(MouseEvent e) 
Implements:
mouseExited in interface MouseListener


mouseReleased

   public void mouseReleased(MouseEvent e) 
Implements:
mouseReleased in interface MouseListener


mouseClicked

   public void mouseClicked(MouseEvent e) 
Implements:
mouseClicked in interface MouseListener


mousePressed

   public void mousePressed(MouseEvent e) 

On any mouse click show the popup menu. Windows has bug for getX(), getY(). (UNIX OK)

Implements:
mousePressed in interface MouseListener


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



Copyright © 1998 The Mozilla Organization.