All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.demos.a401k.acctid.AccountID

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.beans.demos.a401k.acctid.AccountID

public class AccountID
extends Panel
implements Serializable, ActionListener

This bean is a simple account id bean which consists of an entry field and a submit button. The bean is wired to the b401kDap bean so that when a user enters an account id and presses the submit button, that information is forwarded so that the b401kDap bean can look up the corresponding account information.

See Also:
b401kDap

Constructor Index

 o AccountID()
Constructs an instance of the account id bean.

Method Index

 o actionPerformed(ActionEvent)
 o addAccountIDChangedListener(AccountIDChangedListener)
Allows other beans to listen to the AccountIDInformationChanged events this bean generates.
 o fireAccountIDChanged(String)
Notifies all registered listeners that an AccountIDInformationChanged event has occurred.
 o getminimumSize()
 o getpreferredSize()
 o paint(Graphics)
 o removeAccountIDChangedListener(AccountIDChangedListener)
Allows beans to remove themselves from the listener list for this bean's AccountIDInformationChanged event.

Constructors

 o AccountID
 public AccountID()
Constructs an instance of the account id bean. The constructor initializes instance data and builds the graphical user interface.

Methods

 o addAccountIDChangedListener
 public synchronized void addAccountIDChangedListener(AccountIDChangedListener aIDChanged)
Allows other beans to listen to the AccountIDInformationChanged events this bean generates. This is the addListener method for all listeners that want to be notified when an AccountIDInformationChanged event occurs. In the demo, the b401kDap bean is wired to the AccountID bean and is notified when the AccountIDInformationChanged event happens.

Parameters:
aIDChanged - The registering listener.
See Also:
removeAccountIDChangedListener
 o removeAccountIDChangedListener
 public synchronized void removeAccountIDChangedListener(AccountIDChangedListener aIDChanged)
Allows beans to remove themselves from the listener list for this bean's AccountIDInformationChanged event. This is the removeListener method for all listeners that want to be notified when an AccountIDInformationChanged event occurs. In the demo, the b401kDap bean is wired to the AccountID bean and is notified when the AccountIDInformationChanged event happens.

Parameters:
aIDChanged - The unregistering listener.
See Also:
addAccountIDChangedListener
 o fireAccountIDChanged
 protected void fireAccountIDChanged(String accountID)
Notifies all registered listeners that an AccountIDInformationChanged event has occurred. In the demo, this event fires in response to a users entering an account number and hitting the submit button.

Parameters:
accountID - The account id entered by the user.
 o getpreferredSize
 public Dimension getpreferredSize()
 o getminimumSize
 public Dimension getminimumSize()
 o actionPerformed
 public void actionPerformed(ActionEvent event)
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index