jas.hist.util
Class SliceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by jas.hist.util.SliceEvent
All Implemented Interfaces:
Serializable

public class SliceEvent
extends EventObject

An event which is fired by a SliceAdapter when a new slice is added or removed

See Also:
Serialized Form

Nested Class Summary
static class SliceEvent.EventType
          Defines the ENTERED, EXITED, and ACTIVATED event types, along with their string representations, returned by toString().
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SliceEvent(Object source, SliceEvent.EventType type, int index)
          Creates a new object representing a hypertext link event.
 
Method Summary
 SliceEvent.EventType getEventType()
          Gets the type of event.
 int getIndex()
          Gets the index of the slice
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SliceEvent

public SliceEvent(Object source,
                  SliceEvent.EventType type,
                  int index)
Creates a new object representing a hypertext link event.

Parameters:
source - the object responsible for the event
type - the event type
u - the affected URL
Method Detail

getEventType

public SliceEvent.EventType getEventType()
Gets the type of event.

Returns:
the type

getIndex

public int getIndex()
Gets the index of the slice

Returns:
the index


Copyright © 2000-2009 FreeHEP. All Rights Reserved.