001/* ----------------------------------------------------------------------------
002   The Kiwi Toolkit - A Java Class Library
003   Copyright (C) 1998-2004 Mark A. Lindner
004
005   This library is free software; you can redistribute it and/or
006   modify it under the terms of the GNU General Public License as
007   published by the Free Software Foundation; either version 2 of the
008   License, or (at your option) any later version.
009
010   This library is distributed in the hope that it will be useful,
011   but WITHOUT ANY WARRANTY; without even the implied warranty of
012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013   General Public License for more details.
014
015   You should have received a copy of the GNU General Public License
016   along with this library; if not, write to the Free Software
017   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
018   02111-1307, USA.
019 
020   The author may be contacted at: mark_a_lindner@yahoo.com
021   ----------------------------------------------------------------------------
022   $Log: WorkspaceEvent.java,v $
023   Revision 1.5  2004/05/06 00:49:01  markl
024   comment block updates
025
026   Revision 1.4  2003/01/19 09:34:09  markl
027   Javadoc & comment header updates.
028
029   Revision 1.3  2001/03/12 01:38:50  markl
030   Source code cleanup.
031
032   Revision 1.2  1999/01/10 03:29:53  markl
033   added GPL header & RCS tag
034   ----------------------------------------------------------------------------
035*/
036
037package kiwi.event;
038
039import java.util.EventObject;
040
041import kiwi.ui.WorkspaceEditor;
042
043/** Event generated by a <code>WorkspaceManager</code> object to notify
044  * listeners that a <code>WorkspaceEditor</code>'s state has changed in some
045  * way.
046  *
047  * @see kiwi.ui.WorkspaceEditor
048  * @see kiwi.ui.WorkspaceManager
049  * @see kiwi.event.WorkspaceListener
050  *
051  * @author Mark Lindner
052  */
053
054public class WorkspaceEvent extends EventObject
055  {
056  private WorkspaceEditor editor;
057
058  /** Construct a new <code>WorkspaceEvent</code>.
059    *
060    * @param source The source of the event.
061    * @param editor The <code>WorkspaceEditor</code> associated with this
062    * event.
063    */
064
065  public WorkspaceEvent(Object source, WorkspaceEditor editor)
066    {
067    super(source);
068    this.editor = editor;
069    }
070
071  /** Get the editor associated with this event. */
072
073  public WorkspaceEditor getEditor()
074    {
075    return(editor);
076    }
077  
078  }
079
080/* end of source file */