Servoy 5.x Public API

com.servoy.j2db.dataprocessing
Class FoundSetEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.servoy.j2db.dataprocessing.FoundSetEvent
All Implemented Interfaces:
Serializable

public class FoundSetEvent
extends EventObject

The event object for foundset event listeners

Since:
Servoy 5.0
See Also:
Serialized Form

Field Summary
static int CHANGE_DELETE
          Change type data is deleted when type is CONTENTS_CHANGED.
static int CHANGE_INSERT
          Change type data is inserted when type is CONTENTS_CHANGED.
static int CHANGE_UPDATE
          Change type data is updated when type is CONTENTS_CHANGED.
static int CONTENTS_CHANGED
          The foundset's content was changed.
static int FIND_MODE_CHANGE
          The foundset's find mode was changed.
static int NEW_FOUNDSET
          A new foundset has been created for the table.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FoundSetEvent(IFoundSet source, int type, int changeType)
           
 
Method Summary
 int getChangeType()
          Returns the change type of the event when type is CONTENTS_CHANGED.
 IFoundSet getSourceFoundset()
           
 int getType()
          Returns the type of the event.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHANGE_DELETE

public static final int CHANGE_DELETE
Change type data is deleted when type is CONTENTS_CHANGED.

See Also:
Constant Field Values

CHANGE_INSERT

public static final int CHANGE_INSERT
Change type data is inserted when type is CONTENTS_CHANGED.

See Also:
Constant Field Values

CHANGE_UPDATE

public static final int CHANGE_UPDATE
Change type data is updated when type is CONTENTS_CHANGED.

See Also:
Constant Field Values

CONTENTS_CHANGED

public static final int CONTENTS_CHANGED
The foundset's content was changed.

See Also:
Constant Field Values

FIND_MODE_CHANGE

public static final int FIND_MODE_CHANGE
The foundset's find mode was changed.

See Also:
Constant Field Values

NEW_FOUNDSET

public static final int NEW_FOUNDSET
A new foundset has been created for the table. Used by IFoundSetListener#newValue(FoundSetEvent).

See Also:
Constant Field Values
Constructor Detail

FoundSetEvent

public FoundSetEvent(IFoundSet source,
                     int type,
                     int changeType)
Method Detail

getChangeType

public int getChangeType()
Returns the change type of the event when type is CONTENTS_CHANGED. Can be CHANGE_DELETE, CHANGE_INSERT or CHANGE_UPDATE.

Returns:
the change type of the event.

getSourceFoundset

public IFoundSet getSourceFoundset()

getType

public int getType()
Returns the type of the event. Can be FIND_MODE_CHANGE, CONTENTS_CHANGED or NEW_FOUNDSET.

Returns:
the type of the event.

toString

public String toString()
Overrides:
toString in class EventObject

Copyright © 2010 Servoy B.V.