source: trunk/quest-core-events-patrick/src/main/java/de/ugoe/cs/quest/eventcore/userinteraction/InteractionEvent.java @ 449

Last change on this file since 449 was 449, checked in by pharms, 12 years ago

Initial import.

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1//-------------------------------------------------------------------------------------------------
2// Module    : $RCSfile: InteractionEvent.java,v $
3// Version   : $Revision: 0.0 $  $Author: Patrick $  $Date: 06.11.2011 10:48:01 $
4// Project   : TaskTreePerformanceTest
5// Creation  : 2011 by Patrick
6// Copyright : Patrick Harms, 2011
7//-------------------------------------------------------------------------------------------------
8
9package de.ugoe.cs.quest.eventcore.userinteraction;
10
11import de.ugoe.cs.quest.eventcore.guimodel.GUIElement;
12
13
14//-------------------------------------------------------------------------------------------------
15/**
16 * TODO comment
17 *
18 * @version $Revision: $ $Date: $
19 * @author  2011, last modified by $Author: $
20 */
21//-------------------------------------------------------------------------------------------------
22public class InteractionEvent
23{
24  /** */
25  private GUIElement mGUIElement;
26 
27  /** */
28  private Interaction mInteraction;
29
30  //-----------------------------------------------------------------------------------------------
31  /**
32   * @param GUIElement
33   * @param interaction
34   */
35  //-----------------------------------------------------------------------------------------------
36  public InteractionEvent(GUIElement guiElement, Interaction interaction)
37  {
38    mGUIElement = guiElement;
39    mInteraction = interaction;
40  }
41
42  //-----------------------------------------------------------------------------------------------
43  /**
44   * @return
45   */
46  //-----------------------------------------------------------------------------------------------
47  public GUIElement getGUIElement()
48  {
49    return mGUIElement;
50  }
51
52  //-----------------------------------------------------------------------------------------------
53  /**
54   * @return
55   */
56  //-----------------------------------------------------------------------------------------------
57  public Interaction getInteraction()
58  {
59    return mInteraction;
60  }
61
62  //-----------------------------------------------------------------------------------------------
63  /* (non-Javadoc)
64   * @see java.lang.Object#toString()
65   */
66  //-----------------------------------------------------------------------------------------------
67  @Override
68  public String toString()
69  {
70    return mInteraction + " on " + mGUIElement;
71  }
72
73}
Note: See TracBrowser for help on using the repository browser.