BrowserScreen_old.java
public static void enqueue( RequestedResource resource, BrowserContent referrer, HttpHeaders requestHeaders, HttpConnectionFactory pFactory )
  {
    if ( resource == null )
    {
      return;
    }

    synchronized ( syncObject )
    {
      // Create new thread.
      if ( instance == null )
      {
        instance = new SecondaryResourceFetchThread2();
        instance.start();
        instance.headers = requestHeaders;
        instance.factory = pFactory;
      }
      else
      {
        // If thread already is running, check that we are adding images for the same browser field.
        if ( referrer != instance.browserField )
        {
          synchronized ( instance.imageQueue )
          {
            // If the request is for a different browser field clear old elements.
            instance.imageQueue.removeAllElements();
          }
        }
      }

      synchronized ( instance.imageQueue )
      {
        instance.imageQueue.addElement( resource );
      }

      instance.browserField = referrer;
    }
  }
/**
         * Enqueues secondary resource for a browser field.
         * 
         * @param resource
         *            - resource to retrieve.
         * @param referrer
         *            - call back browsr field.
         */
Enqueues secondary resource for a browser field.

@param resource
- resource to retrieve.
@param referrer
- call back browsr field.
Enqueues secondary resource for a browser field . @param resource - resource to retrieve . @param referrer - call back browsr field .
public static void enqueue( RequestedResource resource, BrowserContent referrer, HttpHeaders requestHeaders, HttpConnectionFactory pFactory )
  {
    if ( resource == null )
    {
      return;
    }
    synchronized ( syncObject )
    {
      if ( instance == null )
      {
        instance = new SecondaryResourceFetchThread2();
        instance.start();
        instance.headers = requestHeaders;
        instance.factory = pFactory;
      }
      else
      {
        if ( referrer != instance.browserField )
        {
          synchronized ( instance.imageQueue )
          {
            instance.imageQueue.removeAllElements();
          }
        }
      }
      synchronized ( instance.imageQueue )
      {
        instance.imageQueue.addElement( resource );
      }
      instance.browserField = referrer;
    }
  }
public static void enqueue ( RequestedResource resource , BrowserContent referrer , HttpHeaders requestHeaders , HttpConnectionFactory pFactory ) { if ( resource == null ) { return ; } synchronized ( syncObject ) { if ( instance == null ) { instance = new SecondaryResourceFetchThread2 ( ) ; instance . start ( ) ; instance . headers = requestHeaders ; instance . factory = pFactory ; } else { if ( referrer != instance . browserField ) { synchronized ( instance . imageQueue ) { instance . imageQueue . removeAllElements ( ) ; } } } synchronized ( instance . imageQueue ) { instance . imageQueue . addElement ( resource ) ; } instance . browserField = referrer ; } }
Enqueues secondary resource for a browser field.
Enqueues secondary resource for a browser field .
// Create new thread. // If thread already is running, check that we are adding images for the same browser field. // If the request is for a different browser field clear old elements.