All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.demos.a401k.PercentEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.beans.demos.a401k.PercentEvent

public class PercentEvent
extends EventObject

This class describes the event that gets generated back to the b401k data access bean after a user has changed the percentage allocated to a particular investment choice.

See Also:
PercentListener

Variable Index

 o index
The index into the list of investment choices.
 o investName
The name of the investment choice.
 o newPercent
The new percentage amount of the investment choice.

Constructor Index

 o PercentEvent(Object, int, String, int)
Constructs a PercentEvent.

Method Index

 o getIndex()
The accessor for the index into the investment choices list.
 o getInvestName()
The accessor for the name of the investment choice.
 o getNewPercent()
The accessor for the new percent value of the investment choice.

Variables

 o index
 protected int index
The index into the list of investment choices.

 o investName
 protected String investName
The name of the investment choice.

 o newPercent
 protected int newPercent
The new percentage amount of the investment choice.

Constructors

 o PercentEvent
 public PercentEvent(Object src,
                     int indx,
                     String name,
                     int percent)
Constructs a PercentEvent.

Parameters:
src -
The object that is creating this event.
indx -
The index into the list of investment choices.
name -
The name of the investment choice.
percent -
The new percentage amount for the investment choice.

Methods

 o getIndex
 public int getIndex()
The accessor for the index into the investment choices list.

Returns:
The index for the investment choice that changed.
 o getNewPercent
 public int getNewPercent()
The accessor for the new percent value of the investment choice.

Returns:
The new percent value for the investment choice that changed.
 o getInvestName
 public String getInvestName()
The accessor for the name of the investment choice.

Returns:
The name of the investment choice that changed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index