JIDE 3.5.15

com.jidesoft.grid
Class IndexChangeListenerHelper

java.lang.Object
  extended by com.jidesoft.grid.IndexChangeListenerHelper
All Implemented Interfaces:
IndexChangeListener, Serializable, EventListener

public class IndexChangeListenerHelper
extends Object
implements IndexChangeListener, Serializable

Default listener for index changing. It's used as default table model wrapper listener and default list model wrapper listener

Since:
3.4.4
See Also:
Serialized Form

Constructor Summary
IndexChangeListenerHelper(IndexChangeEventGenerator listenerGenerator)
           
 
Method Summary
 int fireIndexChangeEvent(Object source, int eventType, int eventSerialNumber, boolean forceProcess, boolean actualIndexChanged)
           
 int getEventSerialNumber()
           
 void indexChanged(IndexChangeEvent event)
          Called whenever the model wrapper is going to have some change.
 void setEventSerialNumber(int eventSerialNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexChangeListenerHelper

public IndexChangeListenerHelper(IndexChangeEventGenerator listenerGenerator)
Method Detail

indexChanged

public void indexChanged(IndexChangeEvent event)
Called whenever the model wrapper is going to have some change. So far we have index changing and index changed events.

Please make sure you will NOT call super.ModelWrapperIndexChanged(), otherwise you will get into a endless loop.

Specified by:
indexChanged in interface IndexChangeListener
Parameters:
event - the model wrapper event

fireIndexChangeEvent

public int fireIndexChangeEvent(Object source,
                                int eventType,
                                int eventSerialNumber,
                                boolean forceProcess,
                                boolean actualIndexChanged)

getEventSerialNumber

public int getEventSerialNumber()

setEventSerialNumber

public void setEventSerialNumber(int eventSerialNumber)

JIDE 3.5.15