|
Class grendel.composition.AddressList.AddressPanel
All Packages This Package Class Hierarchy Class Search Index
Class grendel.composition.AddressList.AddressPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----grendel.composition.AddressList.AddressPanel
public class AddressList.AddressPanel
extends com.sun.java.swing.JPanel
implements java.awt.event.KeyListener
{
// Fields 3
private Dimension mAddLineSize;
protected Vector mAddressees;
private Dimension mPerfSize;
// Constructors 1
public AddressPanel();
// Methods 12
private synchronized void addAddresseLine(Addressee);
public void addNotify();
public void doLayout();
private void focusOnLast();
public Dimension getPreferredSize();
public void keyPressed(KeyEvent);
public void keyReleased(KeyEvent);
public void keyTyped(KeyEvent);
public void paint(Graphics);
private synchronized void removeAddressLine(AddressLine);
private synchronized void removeAllAddressLines();
private void repack();
}
Fields
protected Vector mAddressees
private Dimension mAddLineSize
private Dimension mPerfSize
Constructors
public AddressPanel()
Methods
public void doLayout()
layout Addressee lines.
- Overrides:
- doLayout in class Container
public void addNotify()
- Overrides:
- addNotify in class JComponent
public Dimension getPreferredSize()
Returns the preferred size.
The preferred size of the panel is 4 AddressLines tall and full parent width.
- Overrides:
- getPreferredSize in class JComponent
private synchronized void addAddresseLine(Addressee aAddressee)
Adds a new address line to the list.
| Parameter | Description |
| aAddressee | the Addresee you which to add. |
See Also:
removeAddressLine
private void repack()
Remove any blank lines from the middle
and appends a single blank line to the list.
private void focusOnLast()
private synchronized void removeAddressLine(AddressLine aAddressLine)
Removes an address line from the list.
| Parameter | Description |
| aAddressLine | The address line you wish to remove. |
See Also:
addAddresseLine
private synchronized void removeAllAddressLines()
Removes all addressee lines.
See Also:
removeAddressLine, addAddresseLine
public void keyReleased(KeyEvent e)
Resonds to keyboard events for navigation (up, down, enter, etc.)
- Implements:
- keyReleased in interface KeyListener
See Also:
addAddresseLine
public void keyTyped(KeyEvent e)
- Implements:
- keyTyped in interface KeyListener
public void keyPressed(KeyEvent e)
- Implements:
- keyPressed in interface KeyListener
public void paint(Graphics g)
- Overrides:
- paint in class JComponent
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|