home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / SG244883.ZIP / 2_6.3 < prev    next >
Text File  |  2001-01-27  |  5KB  |  79 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <HTML>
  3. <HEAD>
  4. <base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/2.6.3">
  5. <title>
  6. 2.6.3 "OS/2 WARP and OpenDoc" 
  7.   via IBM BookManager BookServer
  8. </title>
  9. </head>
  10. <body background="/bookmgr/backdrop.gif">
  11. <banner><br>
  12. <a href="../../library"><img src="/bookmgr/libicon2.gif" border=0 alt="[Library]"></a>
  13. <a  href="CONTENTS#2.6.3"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
  14. <img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
  15. <a href="2.6.2"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  16. <a href="2.6.4"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  17. <a href="../../search?book=EZ30OZ00"><img src="/bookmgr/search.gif" border=0 alt="[Search]" ></a>
  18. <img src="/bookmgr/dslist.gif" border=0 alt="[Search Results]">
  19. <img src="/bookmgr/dsprev.gif" border=0 alt="[Prev Topic Match]">
  20. <img src="/bookmgr/dsnext.gif" border=0 alt="[Next Topic Match]">
  21. <img src="/bookmgr/dnotes.gif" border=0 alt="[Notes]">
  22. <img src="/bookmgr/dlnotes.gif" border=0 alt="[List Notes]">
  23. <a  href="../../print?book=EZ30OZ00"><img src="/bookmgr/print.gif" border=0 alt="[Print]"></a>
  24. <a href="../../download/EZ30OZ00.boo"><img src="/bookmgr/download.gif" border=0 alt="[Download]" ></a>
  25. <a  href="../../help/book"><img src="/bookmgr/help.gif" border=0 alt="[Help]"></a>
  26. <hr>
  27. <a name="HDR4610DEO"><H3> 2.6.3   Event Objects</H3></a>
  28. </banner>
  29. <pre width="80">
  30. <p>
  31.    The OSA Event Registry: Standard Suites includes definitions for OSA event 
  32.    object classes, which are simply names for objects that can be acted upon 
  33.    by each kind of OSA event.  Applications use these definitions and OSA 
  34.    Event Manager routines to create complex descriptions of almost any 
  35.    discrete item in another application or its documents.  For example, an 
  36.    application could use OSA Event Manager routines and standard object class 
  37.    definitions to construct a Get Data event that requests for example: 
  38. <p>
  39.      <samp>the</samp> <samp>most</samp> <samp>recent</samp> <samp>invoice</samp> <samp>to</samp> <samp>John</samp> <samp>Miller</samp> <samp>in</samp> <samp>the</samp> <samp>Invoices</samp> 
  40.      <samp>database</samp> <samp>on</samp> <samp>the</samp> <samp>Archives</samp> <samp>server</samp> 
  41. <p>
  42.    and send the event to the appropriate application across the network. 
  43. <p>
  44.    An OSA event object is any item supported by an application, such as a 
  45.    word, paragraph, shape, or document, that can be described in an OSA 
  46.    event.  In the example in <a href="2.6.2#HDR4610DS2">" Standard Events" in topic 2.6.2</a>, the specified 
  47.    document, chapter, paragraph, string, and word are nested OSA event 
  48.    objects.  Nearly any item that a user can differentiate and manipulate on 
  49.    an OSA-compliant system can be described as an OSA event object of a 
  50.    specified object class nested within other OSA event objects.  When 
  51.    handling an OSA event that includes such a description, an application 
  52.    must locate the specified OSA event object and perform the requested 
  53.    action on it. 
  54. <p>
  55.    These functions are called object accessor functions according to the 
  56.    event objects they are supporting.  An OSA-aware application must provide 
  57.    for each defined object class for example, paragraph and word, an object 
  58.    accessor function.  This function is called by the OpenDoc ODNameResolver 
  59.    object to resolve the specified object.  The target object is resolved in 
  60.    a recursive process from the outside most general object for example, 
  61.    chapter to the inside words to be changed.  The document itself has no 
  62.    idea about the words to change, but it can resolve chapters 5 through 7; 
  63.    the chapters can resolve the paragraphs; the paragraphs can resolve the 
  64.    words which in turn know their color attribute. 
  65. <p>
  66.    Most of the standard OSA events, defined in the OSA Event Registry: 
  67.    Standard Suites, require applications to recognize specific OSA event 
  68.    object classes.  Support for the standard OSA events, including OSA event 
  69.    object classes, allows your application to respond to requests for 
  70.    services or information from any other application or process. 
  71. </pre>
  72. </pre>
  73. <hr>
  74. <br><a href="2.6.2"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  75. <a href="2.6.4"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  76. <cite>  ⌐ Copyright IBM Corp. 1996</cite>
  77. <HR><p><h6><a href="/cgi-bin/bookmgr/library">IBM BookManager« BookServer</a> Copyright 1989, 1999<a href="http://www.ibm.com/"> IBM</a> Corporation.  All rights reserved.</h6><p>
  78. </BODY></HTML>
  79.