yu.ac.bg.etf.javaqx.qswing.events
Class ListDataEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byyu.ac.bg.etf.javaqx.qswing.events.ListDataEvent
All Implemented Interfaces:
java.io.Serializable

public class ListDataEvent
extends java.util.EventObject

List Data Event.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
See Also:
Serialized Form

Field Summary
static int CONTENTS_CHANGED
          Contents change event.
static int INTERVAL_ADDED
          Interval added.
static int INTERVAL_REMOVED
          Interval removed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ListDataEvent(java.lang.Object source, int type, int index0, int index1)
          Constructs new ListDataEvent object.
 
Method Summary
 int getIndex0()
          Returns the lower index of the range.
 int getIndex1()
          Returns the upper index of the range.
 int getType()
          Returns event type.
 java.lang.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

CONTENTS_CHANGED

public static final int CONTENTS_CHANGED
Contents change event.

See Also:
Constant Field Values

INTERVAL_ADDED

public static final int INTERVAL_ADDED
Interval added.

See Also:
Constant Field Values

INTERVAL_REMOVED

public static final int INTERVAL_REMOVED
Interval removed.

See Also:
Constant Field Values
Constructor Detail

ListDataEvent

public ListDataEvent(java.lang.Object source,
                     int type,
                     int index0,
                     int index1)
Constructs new ListDataEvent object.

Parameters:
source - the source of the event
type - the event type
index0 - the lower index of the range
index1 - the upper index of the range
Throws:
java.lang.IllegalArgumentException - if the source is null
Method Detail

getType

public int getType()
Returns event type.

Returns:
event type

getIndex0

public int getIndex0()
Returns the lower index of the range.

Returns:
the lower index of the range

getIndex1

public int getIndex1()
Returns the upper index of the range.

Returns:
the upper index of the range

toString

public java.lang.String toString()



Copyright © 2007 ETF and contributors. All Rights Reserved.