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.AttachmentsList

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

public class  AttachmentsList
     extends com.sun.java.swing.JScrollPane
     implements java.io.Serializable
{
          // Fields 1
     private AttachmentsPanel mAP;

          // Constructors 1
     public AttachmentsList();

          // Methods 6
     public void addAttachment(String);
     public static Frame getTopLevelFrame(Component);
     public void removeAllAttachments();
     public void removeAttachment(int);
     public void setEnabled(boolean);
     public void showDialog();

          // Inner Classes 2
     class AttachmentsPanel
     class AttachmentLabel
}



Fields


mAP

   private AttachmentsPanel mAP



Constructors


AttachmentsList

   public AttachmentsList() 



Methods


setEnabled

   public void setEnabled(boolean aEnabled) 

Sets this gadgets enabled state.

Parameter Description
aEnabled Boolean value for enabled.

Overrides:
setEnabled in class Component


showDialog

   public void showDialog() 

showDialog requests that the AddressList display its file dialog.

See Also: showDialog



removeAllAttachments

   public void removeAllAttachments() 

Delets all attachments from the list.

See Also: addAttachment, removeAttachment



removeAttachment

   public void removeAttachment(int aIndex) 

Remove an entry at index from the list.

Parameter Description
aIndex The index of the attachment to remove.

See Also: removeAllAttachments



addAttachment

   public void addAttachment(String aFilePath) 

Adds an attachment to the list.

Parameter Description
aFilePath A file path.

See Also: removeAllAttachments



getTopLevelFrame

   public static Frame getTopLevelFrame(Component aComp) 

Tranverse up a component's tree to find the top most frame.

Parameter Description
aComp the component for which you want its parent frame for.

Returns:
The parent frame.


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