You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sven Leiber (JIRA)" <ji...@apache.org> on 2013/09/07 08:34:51 UTC
[jira] [Created] (PIVOT-919) Add functions to get the applet class
that was running in the BrowserApplicationContext class
Sven Leiber created PIVOT-919:
---------------------------------
Summary: 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
Priority: Minor
Fix For: 2.0.4
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira