Re: [OpenMap Users] How to get OpenMap or OpenMapApplet instance within a layer

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 25 Mar 2005 10:10:07 -0500

Hi Guillaume ,

If you are running in an applet, you can get a handle to the applet by
calling Environment.getApplet().

- Don

On Mar 24, 2005, at 5:34 PM, Guillaume wrote:

> Hi !
>  
> I am a French user of OpenMap (4.6.2) and I am creating my own layer
> in an OpenMap Applet. I need to interact with the browser. Il fact I
> need to have an access (handler) to the Applet class,  ie
> OpenMapApplet class.
>  
> I tried to use :
>  
>
> Iterator it = getBeanContext().iterator();
> Object someObjs = null;
> while(it.hasNext()) {
> someObjs = it.next();
> if (someObjs instanceof OpenMap) { //or OpenMapApplet for my applet
>    System.out.println("this is the one I need");
> }
> else System.out.println("not this one");
> }
>  
> and I can't get with BeanContext() an handler to original
> OpenMapApplet class. I guess there is a way to get back to
> OpenMapApplet classes from a mapbean layer, but I can't find how.
>  
> I need to use :  getAppletContext().showDocument(...)
> of java Applet for exemple. Is there anyway to do it ?
>  
> Thanks ;)
>  
> Guillaume
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Fri Mar 25 2005 - 10:10:17 EST

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