edu.columbia.coms6901.pingtel.pingim
Class ListListener

java.lang.Object
  |
  +--edu.columbia.coms6901.pingtel.pingim.ListListener
All Implemented Interfaces:
com.pingtel.xpressa.awt.event.PListListener

public class ListListener
extends java.lang.Object
implements com.pingtel.xpressa.awt.event.PListListener

Gets activated whenever a list selection changes. Utility class.

Version:
1.0
Author:
Micah Sherr

Field Summary
private  com.pingtel.xpressa.awt.form.SimpleListForm form
          the form that's being listened to
private  int iRow
          the selected row
 
Constructor Summary
ListListener(com.pingtel.xpressa.awt.form.SimpleListForm form)
          Creates a new listener
 
Method Summary
 int getRow()
          Returns the selected row
 void selectChanged(com.pingtel.xpressa.awt.event.PListEvent event)
          Invoked whenever a list selection changes
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iRow

private int iRow
the selected row

form

private com.pingtel.xpressa.awt.form.SimpleListForm form
the form that's being listened to
Constructor Detail

ListListener

public ListListener(com.pingtel.xpressa.awt.form.SimpleListForm form)
Creates a new listener
Parameters:
form - The SimpleListForm object describing the list
Method Detail

selectChanged

public void selectChanged(com.pingtel.xpressa.awt.event.PListEvent event)
Invoked whenever a list selection changes
Specified by:
selectChanged in interface com.pingtel.xpressa.awt.event.PListListener
Parameters:
event - The event object describing the state change

getRow

public int getRow()
Returns the selected row
Returns:
the selected row