Browse Prior Art Database

Comprehensive Design for Runtime Updates to Application-Added Menu Items

IP.com Disclosure Number: IPCOM000112351D
Original Publication Date: 1994-May-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 81K

Publishing Venue

IBM

Related People

Malcolm, JW: AUTHOR [+2]

Abstract

A Graphical User Interface (GUI) to a LAN management program is which an object-oriented application which allows other applications to register and display menu items within it. These menu items can be used for any purpose the application desires, and the GUI has no knowledge of what these purposes might be. It is therefore up to the applicaiton to ensure tht the menu items are displayed in their proper state at all times.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Comprehensive Design for Runtime Updates to Application-Added Menu
Items

      A Graphical User Interface (GUI) to a LAN management program is
which an object-oriented application which allows other applications
to register and display menu items within it.  These menu items can
be used for any purpose the application desires, and the GUI has no
knowledge of what these purposes might be.  It is therefore up to the
applicaiton to ensure tht the menu items are displayed in their
proper state at all times.

      A major concern is how a registering application can update
those menu items when it needs to do so.  The application may need to
check or uncheck some menu items, to enable or disable them, or to
remove some that are not appropriate for the current environment.
The correct state for a given menu item may change many times as the
runtime environment changes.  This disclosure describes a
comprehensive design for allowing the registering application to
ensure that its menu items are displayed in their correct state at
all times.

      First, a menu update method is created in a place in the class
hierarchy that can be overridden by the registering application.  The
application must override this method so that it will be called
whenever menu updates may be required.

      When the application's method override is called, it needs to
perform whatever checks on the current state of the system are
necessary for it to determine what the present state of its
registered menu items should be.  It then returns an array of menu
item update structures that contain the ID of the menu item it wishes
to change and what the new state for that menu item should be.  Only
those registered menu items that the application wishes to change
states for need be included in the array.

      When this array is received from the call to the application,
it equates the IDs to specific menu items and performs the necessary
state changes.  The application does not need to keep track of what
the current state of a menu item is, it just needs to know what state
it should currently be in.  The GUI then ensu...