net.sf.sbcc.componentcombo
Class SimpleDataEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.sbcc.componentcombo.SimpleDataEvent
All Implemented Interfaces:
java.io.Serializable

public class SimpleDataEvent
extends java.util.EventObject

Defines an event that encapsulates changes to a list.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.

Author:
Christoph Bimminger
See Also:
Serialized Form

Field Summary
static int CONTENTS_CHANGED
          Identifies one or more changes in the lists contents.
private  int type
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SimpleDataEvent(java.lang.Object source, int type)
          Constructs a ListDataEvent object.
 
Method Summary
 int getType()
          Returns the event type.
 java.lang.String toString()
          Returns a string representation of this ListDataEvent.
 
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

CONTENTS_CHANGED

public static final int CONTENTS_CHANGED
Identifies one or more changes in the lists contents.

See Also:
Constant Field Values

type

private int type
Constructor Detail

SimpleDataEvent

public SimpleDataEvent(java.lang.Object source,
                       int type)
Constructs a ListDataEvent object. If index0 is > index1, index0 and index1 will be swapped such that index0 will always be <= index1.

Parameters:
source - the source Object (typically this)
type - an int specifying CONTENTS_CHANGED, #INTERVAL_ADDED, or #INTERVAL_REMOVED
index0 - one end of the new interval
index1 - the other end of the new interval
Method Detail

getType

public int getType()
Returns the event type. The possible values are:

Returns:
an int representing the type value

toString

public java.lang.String toString()
Returns a string representation of this ListDataEvent. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Overrides:
toString in class java.util.EventObject
Returns:
a string representation of this ListDataEvent.
Since:
1.4