home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-08-20 | 2.2 KB | 111 lines |
- //==========================================================================
- //
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
- // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- // PURPOSE.
- //
- // Copyright (C) 1997 Microsoft Corporation. All Rights Reserved.
- //
- //==========================================================================
-
- // Standard java imports
-
- import java.applet.*;
- import java.awt.*;
-
- // COM and Microsoft Agent imports
-
- import com.ms.com.Variant;
- import agentsvr.IAgentNotifySink;
- import agentsvr.IAgentCharacter;
-
- // This class is an implementation of an IAgentNotifySink.
- // All methods are stubs except Click.
-
- public class Notify implements IAgentNotifySink
- {
- IAgentCharacter m_Character = null;
- int m_RequestID[] = {-1};
-
- public Notify()
- {
- // Constructor left intentionally blank
- }
-
- public void SetCharacter(IAgentCharacter character)
- {
- // Save the character interface for later
-
- m_Character = character;
- }
-
- public void Click(int characterID, short keys, int x, int y)
- {
- if (m_Character != null)
- {
- m_Character.Speak("You clicked on me", "", m_RequestID);
- }
- }
-
- public void DblClick(int characterID, short keys, int x, int y)
- {
- }
-
- public void Restart()
- {
- }
-
- public void BookMark(int bookmarkID)
- {
- }
-
- public void Shutdown()
- {
- }
-
- public void DragStart(int characterID, short keys, int x, int y)
- {
- }
-
- public void DragComplete(int characterID, short keys, int x, int y)
- {
- }
-
- public void ActivateInputState(int characterID, int activated)
- {
- }
-
- public void Command(int commandID, com.ms.com.IUnknown userInput)
- {
- }
-
- public void RequestStart(int requestID)
- {
- }
-
- public void RequestComplete(int requestID, int status)
- {
- }
-
- public void VisibleState(int characterID, int visible, int cause)
- {
- }
-
- public void Idle(int characterID, int start)
- {
- }
-
- public void Move(int characterID, int x, int y, int cause)
- {
- }
-
- public void Size(int characterID, int width, int height)
- {
- }
-
- public void BalloonVisibleState(int characterID, int visible)
- {
- }
- }
-