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


Class grendel.composition.AttachmentsList.AttachmentsPanel

All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.composition.AttachmentsList.AttachmentsPanel

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


class  AttachmentsList.AttachmentsPanel
     extends com.sun.java.swing.JPanel
     implements java.awt.event.MouseListener, 
                java.awt.event.KeyListener
{
          // Fields 1
     private AttachmentLabel mCurrentSelection;

          // Constructors 1
     public AttachmentsPanel();

          // Methods 18
     protected void addAttachment(String);
     public void doLayout();
     public Dimension getMaximumSize();
     public Dimension getMinimumSize();
     public Dimension getPreferredSize();
     private AttachmentLabel getSelection();
     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);
     private void removeAttachment(AttachmentLabel);
     private void removeAttachment(int);
     private void setSelection(AttachmentLabel);
     protected void showDialog();
}



Fields


mCurrentSelection

   private AttachmentLabel mCurrentSelection



Constructors


AttachmentsPanel

   public AttachmentsPanel() 



Methods


getSelection

   private AttachmentLabel getSelection() 

Gets the currently selected label.

Returns:
The currently selected label.

See Also: setSelection



setSelection

   private void setSelection(AttachmentLabel aLabel) 

Sets the currently selected label.

Parameter Description
One of the AttachmentLabel's

See Also: getSelection



addAttachment

   protected void addAttachment(String aFilePath) 

Adds a file attachment to the list.

Parameter Description
aFilePath A file path.

See Also: AttachmentsList.addAttachment



removeAttachment

   private void removeAttachment(AttachmentLabel aAttLabel) 

Remove a file attachment from the list.



removeAttachment

   private void removeAttachment(int aIndex) 

Remove a file attachment from the list.



doLayout

   public void doLayout() 

Overrides:
doLayout in class Container


getMaximumSize

   public Dimension getMaximumSize() 
Overrides:
getMaximumSize in class JComponent


getMinimumSize

   public Dimension getMinimumSize() 
Overrides:
getMinimumSize in class JComponent


getPreferredSize

   public Dimension getPreferredSize() 
Overrides:
getPreferredSize in class JComponent


showDialog

   protected void showDialog() 

Display the file dialog so the user can select a file to add to the list.

See Also: this.mousePressed and AttachmentsList.showDialog



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) 
Implements:
mousePressed in interface MouseListener


keyReleased

   public void keyReleased(KeyEvent e) 

keyPressed responds to up and down arrows keys.

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


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.