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
-
index
- The index into the list of investment choices.
-
investName
- The name of the investment choice.
-
newPercent
- The new percentage amount of the investment choice.
-
PercentEvent(Object, int, String, int)
- Constructs a PercentEvent.
-
getIndex()
- The accessor for the index into the investment choices list.
-
getInvestName()
- The accessor for the name of the investment choice.
-
getNewPercent()
- The accessor for the new percent value of the investment choice.
index
protected int index
- The index into the list of investment choices.
investName
protected String investName
- The name of the investment choice.
newPercent
protected int newPercent
- The new percentage amount of the investment choice.
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.
getIndex
public int getIndex()
- The accessor for the index into the investment choices list.
- Returns:
- The index for the investment choice that changed.
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.
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