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
-
AccountID()
- Constructs an instance of the account id bean.
-
actionPerformed(ActionEvent)
-
-
addAccountIDChangedListener(AccountIDChangedListener)
- Allows other beans to listen to the AccountIDInformationChanged events this bean generates.
-
fireAccountIDChanged(String)
- Notifies all registered listeners that an AccountIDInformationChanged event has
occurred.
-
getminimumSize()
-
-
getpreferredSize()
-
-
paint(Graphics)
-
-
removeAccountIDChangedListener(AccountIDChangedListener)
- Allows beans to remove themselves from the listener list for this bean's
AccountIDInformationChanged event.
AccountID
public AccountID()
- Constructs an instance of the account id bean. The constructor
initializes instance data and builds the graphical user interface.
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
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
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.
getpreferredSize
public Dimension getpreferredSize()
getminimumSize
public Dimension getminimumSize()
actionPerformed
public void actionPerformed(ActionEvent event)
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
All Packages Class Hierarchy This Package Previous Next Index