com.ibm.aglet.util
Class AddressChooser

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--com.ibm.aglet.util.AddressChooser

public class AddressChooser
extends java.awt.Panel
implements java.awt.event.ActionListener

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
AddressChooser()
          Constructs a new AddressChooser with the default number of colums.
AddressChooser(int columns)
          Constructs a new AddressChooser with the specified number of colums.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
 void addActionListener(java.awt.event.ActionListener l)
          Adds the specified action listener to receive action events from this chooser.
 java.lang.String getAddress()
          Get the address which is currently chosen by this chooser.
 boolean handleEvent(java.awt.Event ev)
           
 void removeActionListener(java.awt.event.ActionListener l)
          Removes the specified action listener so it no longer receives action events from this chooser.
 void removeNotify()
           
 void setActionCommand(java.lang.String cmd)
          Sets the command name of the action event fired by this chooser.
 void setAddress(java.lang.String addr)
          Set the specified string as to the address book.
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, setCursor, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressChooser

public AddressChooser()
Constructs a new AddressChooser with the default number of colums. The default nubmer is 10.
Parameters:
columns - the number of columns

AddressChooser

public AddressChooser(int columns)
Constructs a new AddressChooser with the specified number of colums.
Parameters:
columns - the number of columns
Method Detail

getAddress

public java.lang.String getAddress()
Get the address which is currently chosen by this chooser.

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive action events from this chooser.
Parameters:
l - the action listener

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so it no longer receives action events from this chooser.
Parameters:
l - the action listener

setActionCommand

public void setActionCommand(java.lang.String cmd)
Sets the command name of the action event fired by this chooser. By default this will be set to the "address".

setAddress

public void setAddress(java.lang.String addr)
Set the specified string as to the address book.

removeNotify

public void removeNotify()
Overrides:
removeNotify in class java.awt.Container

handleEvent

public boolean handleEvent(java.awt.Event ev)
Overrides:
handleEvent in class java.awt.Component

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener