Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-919

Add functions to get the applet class that was running in the BrowserApplicationContext class

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Later
    • 2.0.3
    • 2.1
    • wtk
    • All OS's with Version 2.0.3

    Description

      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;
      }

      Attachments

        Activity

          People

            smartini Sandro Martini
            jsven007 Sven Leiber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: