All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class AU.net.plugged.sort.event.SortEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----AU.net.plugged.sort.event.SortEvent

public class SortEvent
extends EventObject
Version: 1.0

Author: Chris Ryan

Company: Plugged In Software
P.O. Box 4130
St Lucia South
Brisbane Queensland 4067
Australia
http://www.plugged.net.au

Date: 15 September 1997

Purpose:
Notifies listeners of sort event(s).
Modification History:


Variable Index

 o _event_type
The type of event that occured.
 o _sort_vector
The vector being sorted.
 o SORT_COMPLETED
The event type is sort completed.

Constructor Index

 o SortEvent(Object, int, Vector)
Creates an event, which can be passed to a SortListener

Method Index

 o getEventType()
Returns the type of event that occured
 o getSortVector()
Gets the vector to be sorted
 o getVersionString()
Returns the RCS version information for this class.
 o setEventType(int)
Sets the type of event that occured
 o setSortVector(Vector)
Sets the vector to be sorted

Variables

 o _sort_vector
 protected Vector _sort_vector
The vector being sorted.

 o _event_type
 protected int _event_type
The type of event that occured. Use the constant(s) provided.

 o SORT_COMPLETED
 public static final int SORT_COMPLETED
The event type is sort completed.

Constructors

 o SortEvent
 public SortEvent(Object source,
                  int id,
                  Vector sort_vector)
Creates an event, which can be passed to a SortListener

Parameters:
source - The object that generated this event
id - The type of event that these sort_vector belong to
sort_vector - A Vector containing String objects of the filenames

Methods

 o setEventType
 public void setEventType(int type)
Sets the type of event that occured

Parameters:
type - Type of event that occured - see constants
 o getEventType
 public int getEventType()
Returns the type of event that occured

Returns:
Returns a constant from above
 o setSortVector
 public void setSortVector(Vector sort_vector)
Sets the vector to be sorted

Parameters:
sort_vector - A vector containing objects to be sorted
 o getSortVector
 public Vector getSortVector()
Gets the vector to be sorted

Returns:
Returns the sort vector.
 o getVersionString
 public static String getVersionString()
Returns the RCS version information for this class.

Returns:
Returns the RCS Revision string for this class

All Packages  Class Hierarchy  This Package  Previous  Next  Index