pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandro Martini (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PIVOT-919) Add functions to get the applet class that was running in the BrowserApplicationContext class
Date Tue, 01 Oct 2013 10:20:26 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782783#comment-13782783
] 

Sandro Martini edited comment on PIVOT-919 at 10/1/13 10:19 AM:
----------------------------------------------------------------

Hi Sven, 
currently there is the method:
public static Application getApplication(String name)
that do a similar thing, but returning it as an Application (good both for Applets and Applications
in Pivot). Returning HostApplet I'm not sure it's a good thing, mainly for security purposes,
but we can verify it ... or at least check for 2.1 .

Do you need this feature for something specific like applet-to-applet communication ?
Have you got a minimal sample for your rquirements ? Thanks.


was (Author: smartini):
Hi Sven, do you need this feature for something specific like applet-to-applet communication
?
Have you got a minimal sample for your rquirements ? Thanks.

> Add functions to get the applet class that was running in the BrowserApplicationContext
class
> ---------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-919
>                 URL: https://issues.apache.org/jira/browse/PIVOT-919
>             Project: Pivot
>          Issue Type: Wish
>          Components: wtk
>    Affects Versions: 2.0.3
>         Environment: All OS's with Version 2.0.3
>            Reporter: Sven Leiber
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: patch
>             Fix For: 2.0.4, 2.1
>
>
> I think it was a missing function to get the applet classes from the BrowserApplicationContext.
I think we can add there two functions:
>     public static HostApplet getApplet(String name) {
>         if (name == null) {
>             throw new IllegalArgumentException("name is null.");
>         }
>         for (HostApplet hostApplet : hostApplets) {
>             if (hostApplet.getName().equals(name)) {
>             	return hostApplet;
>             }
>         }
>         return null;
>     }
>     public static HostApplet getApplet() {
>     	if(isActive()) {
>     		return hostApplets.get(0);
>     	}
>     	return null;
>     }



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message