public AttachmentsInspector(AttachmentContainer container) { super( "Attachments (" + container.getAttachmentCount() + ")", "Files attached to this message", true, AttachmentsInspectorFactory.INSPECTOR_ID); this.container = container; container.addAttachmentsChangeListener(this); }
public void propertyChange(PropertyChangeEvent evt) { setTitle("Attachments (" + container.getAttachmentCount() + ")"); }
@Override public void release() { super.release(); attachmentsPanel.release(); container.removeAttachmentsChangeListener(this); }