Re: [OpenMap Users] menus on select from OMGraphicHandlerLayer subclass

From: Don Dietrick <dietrick_at_bbn.com>
Date: Sat, 18 Sep 2004 16:23:01 -0400

You have to add an ActionListener to the JMenuItem, that does what you
want - either calling some method on the layer, or fiddling with some
object it has access to.

The LocationMenuItem probably needs some more information from the
layer before it'll really work as you expect.

- Don


On Sep 18, 2004, at 4:13 PM, Robert Najlis wrote:

> Don,
>
> I am trying to figure out what to put inside the
> getitemsForOMGraphicMenu. You need a list of JMenuItems, right? In
> the example below, I added a LocationMenuItem, but how do I tell it to
> do anything?
>
> Thanks.
>
> Robert
>
>
>
>
>
> public java.util.List getItemsForOMGraphicMenu(OMGraphic omg) {
> System.out.println("-------getItemsForOMGraphicMenu");
> ArrayList list = new ArrayList();
> LocationMenuItem propertiesMenuItem = new
> LocationMenuItem("Properties");
>
> list.add(propertiesMenuItem);
> return list;
> }
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sat Sep 18 2004 - 16:23:24 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT