|
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
private AttachmentLabel mCurrentSelection
Constructors
public AttachmentsPanel()
Methods
private AttachmentLabel getSelection()
Gets the currently selected label.
- Returns:
- The currently selected label.
See Also:
setSelection
private void setSelection(AttachmentLabel aLabel)
Sets the currently selected label.
| Parameter | Description |
| One | of the AttachmentLabel's |
See Also:
getSelection
protected void addAttachment(String aFilePath)
Adds a file attachment to the list.
| Parameter | Description |
| aFilePath | A file path. |
See Also:
AttachmentsList.addAttachment
private void removeAttachment(AttachmentLabel aAttLabel)
Remove a file attachment from the list.
private void removeAttachment(int aIndex)
Remove a file attachment from the list.
public void doLayout()
- Overrides:
- doLayout in class Container
public Dimension getMaximumSize()
- Overrides:
- getMaximumSize in class JComponent
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class JComponent
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class JComponent
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
public void mouseEntered(MouseEvent e)
- Implements:
- mouseEntered in interface MouseListener
public void mouseExited(MouseEvent e)
- Implements:
- mouseExited in interface MouseListener
public void mouseReleased(MouseEvent e)
- Implements:
- mouseReleased in interface MouseListener
public void mouseClicked(MouseEvent e)
- Implements:
- mouseClicked in interface MouseListener
public void mousePressed(MouseEvent e)
- Implements:
- mousePressed in interface MouseListener
public void keyReleased(KeyEvent e)
keyPressed responds to up and down arrows keys.
- Implements:
- keyReleased in interface KeyListener
public void keyTyped(KeyEvent e)
- Implements:
- keyTyped in interface KeyListener
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
|