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
mAddressees
protected Vector mAddressees
mAddLineSize
private Dimension mAddLineSize
mPerfSize
private Dimension mPerfSize
Constructors
AddressPanel
public AddressPanel()
Methods
doLayout
public void doLayout()
addNotify
public void addNotify()
- Overrides:
- addNotify in class JComponent
getPreferredSize
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
addAddresseLine
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
repack
private void repack()
Remove any blank lines from the middle and appends a single blank line to the list.
focusOnLast
private void focusOnLast()
removeAddressLine
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
removeAllAddressLines
private synchronized void removeAllAddressLines()
Removes all addressee lines.
See Also: removeAddressLine, addAddresseLine
keyReleased
public void keyReleased(KeyEvent e)
Resonds to keyboard events for navigation (up, down, enter, etc.)
- Implements:
- keyReleased in interface KeyListener
See Also: addAddresseLine
keyTyped
public void keyTyped(KeyEvent e)
- Implements:
- keyTyped in interface KeyListener
keyPressed
public void keyPressed(KeyEvent e)
- Implements:
- keyPressed in interface KeyListener
paint
public void paint(Graphics g)
- Overrides:
- paint in class JComponent
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4