jfxrt

 
    private Entry(long paramLong1, long paramLong2)
    {
      pitem = paramLong1;
      ppage = paramLong2;
      getURL();
      getTitle();
      getLastVisitedDate();
      getIcon();
      getTarget();
      isTargetItem();
      getChildren();
    }
    
    private void notifyItemDestroyed()
    {
      pitem = 0L;
    }
    
    private void notifyItemChanged()
    {
      Iterator localIterator = listenerList.iterator();
      while (localIterator.hasNext())
      {
        WCChangeListener localWCChangeListener = (WCChangeListener)localIterator.next();
        localWCChangeListener.stateChanged(new WCChangeEvent(this));
      }
    }
    
    public URL getURL()
    {
      try
      {
        return pitem == 0L ? url : (url = URLs.newURL(BackForwardList.bflItemGetURL(pitem)));
      }
      catch (MalformedURLException localMalformedURLException) {}
      return url = null;
    }
    
    public String getTitle()
    {
      return pitem == 0L ? title : (title = BackForwardList.bflItemGetTitle(pitem));
    }
    
    public WCImage getIcon()
    {
      return pitem == 0L ? icon : (icon = BackForwardList.bflItemGetIcon(pitem));
    }
    
    public String getTarget()
    {
      return pitem == 0L ? target : (target = BackForwardList.bflItemGetTarget(pitem));
    }
    
    public Date getLastVisitedDate()
    {
      return lastVisitedDate == null ? null : (Date)lastVisitedDate.clone();
    }
    
    void updateLastVisitedDate()
    {
      lastVisitedDate = new Date(System.currentTimeMillis());
      notifyItemChanged();
    }
    
    public boolean isTargetItem()
    {
      return pitem == 0L ? isTargetItem : (isTargetItem = BackForwardList.bflItemIsTargetItem(pitem));
    }
    
    public Entry[] getChildren()
    {
      return pitem == 0L ? children : (children = BackForwardList.bflItemGetChildren(pitem, ppage));
    }
    
    public String toString()
    {
      return "url=" + getURL() + ",title=" + getTitle() + ",date=" + getLastVisitedDate();
    }
    
    public void addChangeListener(WCChangeListener paramWCChangeListener)
    {
      if (paramWCChangeListener == null) {
        return;
      }
      listenerList.add(paramWCChangeListener);
    }
    
    public void removeChangeListener(WCChangeListener paramWCChangeListener)
    {
      if (paramWCChangeListener == null) {
        return;
      }
      listenerList.remove(paramWCChangeListener);
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.BackForwardList
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.util.Locale;
import java.util.ResourceBundle;
import java.util.logging.Logger;

public class ConfigManager
{
  public static final Logger log = Logger.getLogger(ConfigManager.class.getName());
  private static String RESOURCE_FILE = "com.sun.webpane.platform.build";
  private static ResourceBundle bundle = ResourceBundle.getBundle(RESOURCE_FILE, Locale.getDefault());
  
  public static String getProperty(String paramString)
  {
    return getProperty(paramString, null);
  }
  
  public static String getProperty(String paramString1, String paramString2)
  {
    return (bundle == null) || (!bundle.containsKey(paramString1)) ? paramString2 : bundle.getString(paramString1);
  }
  
  static
  {
    log.finest("configuration: " + bundle.keySet());
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.ConfigManager
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

class ContextMenu$1 {}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.ContextMenu.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public class ContextMenu$ShowContext
{
  private WebPage page;
  private long pdata;
  
  private ContextMenu$ShowContext(ContextMenu paramContextMenu, WebPage paramWebPage, long paramLong)
  {
    page = paramWebPage;
    pdata = paramLong;
  }
  
  public WebPage getPage()
  {
    return page;
  }
  
  public void notifyItemSelected(int paramInt)
  {
    ContextMenu.access$000(this$0, pdata, paramInt);
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.ContextMenu.ShowContext
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public abstract class ContextMenu
{
  public abstract void show(ShowContext paramShowContext, int paramInt1, int paramInt2);
  
  public abstract void appendItem(ContextMenuItem paramContextMenuItem);
  
  public abstract void insertItem(ContextMenuItem paramContextMenuItem, int paramInt);
  
  public abstract int getItemCount();
  
  private static ContextMenu fwkCreateContextMenu()
  {
    if (MenuManager.getMenuManager() != null) {
      return MenuManager.getMenuManager().createContextMenu();
    }
    return null;
  }
  
  private void fwkShow(WebPage paramWebPage, long paramLong, int paramInt1, int paramInt2)
  {
    show(new ShowContext(paramWebPage, paramLong, null), paramInt1, paramInt2);
  }
  
  private void fwkAppendItem(ContextMenuItem paramContextMenuItem)
  {
    appendItem(paramContextMenuItem);
  }
  
  private void fwkInsertItem(ContextMenuItem paramContextMenuItem, int paramInt)
  {
    insertItem(paramContextMenuItem, paramInt);
  }
  
  private int fwkGetItemCount()
  {
    return getItemCount();
  }
  
  private native void twkHandleItemSelected(long paramLong, int paramInt);
  
  public class ShowContext
  {
    private WebPage page;
    private long pdata;
    
    private ShowContext(WebPage paramWebPage, long paramLong)
    {
      page = paramWebPage;
      pdata = paramLong;
    }
    
    public WebPage getPage()
    {
      return page;
    }
    
    public void notifyItemSelected(int paramInt)
    {
      ContextMenu.this.twkHandleItemSelected(pdata, paramInt);
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.ContextMenu
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public final class ContextMenuItem
{
  public static final int ACTION_TYPE = 0;
  public static final int SEPARATOR_TYPE = 1;
  public static final int SUBMENU_TYPE = 2;
  private String title;
  private int action;
  private boolean isEnabled;
  private boolean isChecked;
  private int type;
  private ContextMenu submenu;
  
  public String getTitle()
  {
    return title;
  }
  
  public int getAction()
  {
    return action;
  }
  
  public boolean isEnabled()
  {
    return isEnabled;
  }
  
  public boolean isChecked()
  {
    return isChecked;
  }
  
  public int getType()
  {
    return type;
  }
  
  public ContextMenu getSubmenu()
  {
    return submenu;
  }
  
  public String toString()
  {
    return new String(super.toString() + " [title=\"" + title + "\", action=" + action + ", isEnabled=" + isEnabled + ", isChecked=" + isChecked + ", type=" + (type == 1 ? "SEPARATOR_TYPE" : type == 0 ? "ACTION_TYPE" : "SUBMENU_TYPE") + "]");
  }
  
  private static ContextMenuItem fwkCreateContextMenuItem()
  {
    return new ContextMenuItem();
  }
  
  private void fwkSetTitle(String paramString)
  {
    title = paramString;
  }
  
  private String fwkGetTitle()
  {
    return getTitle();
  }
  
  private void fwkSetAction(int paramInt)
  {
    action = paramInt;
  }
  
  private int fwkGetAction()
  {
    return getAction();
  }
  
  private void fwkSetEnabled(boolean paramBoolean)
  {
    isEnabled = paramBoolean;
  }
  
  private boolean fwkIsEnabled()
  {
    return isEnabled();
  }
  
  private void fwkSetChecked(boolean paramBoolean)
  {
    isChecked = paramBoolean;
  }
  
  private void fwkSetType(int paramInt)
  {
    type = paramInt;
  }
  
  private int fwkGetType()
  {
    return getType();
  }
  
  private void fwkSetSubmenu(ContextMenu paramContextMenu)
  {
    submenu = paramContextMenu;
  }
  
  private ContextMenu fwkGetSubmenu()
  {
    return getSubmenu();
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.ContextMenuItem
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.WCImage;
import com.sun.webpane.platform.graphics.WCImageFrame;
import java.util.HashMap;
import java.util.Map;

public abstract class CursorManager<T>
{
  public static final int POINTER = 0;
  public static final int CROSS = 1;
  public static final int HAND = 2;
  public static final int MOVE = 3;
  public static final int TEXT = 4;
  public static final int WAIT = 5;
  public static final int HELP = 6;
  public static final int EAST_RESIZE = 7;
  public static final int NORTH_RESIZE = 8;
  public static final int NORTH_EAST_RESIZE = 9;
  public static final int NORTH_WEST_RESIZE = 10;
  public static final int SOUTH_RESIZE = 11;
  public static final int SOUTH_EAST_RESIZE = 12;
  public static final int SOUTH_WEST_RESIZE = 13;
  public static final int WEST_RESIZE = 14;
  public static final int NORTH_SOUTH_RESIZE = 15;
  public static final int EAST_WEST_RESIZE = 16;
  public static final int NORTH_EAST_SOUTH_WEST_RESIZE = 17;
  public static final int NORTH_WEST_SOUTH_EAST_RESIZE = 18;
  public static final int COLUMN_RESIZE = 19;
  public static final int ROW_RESIZE = 20;
  public static final int MIDDLE_PANNING = 21;
  public static final int EAST_PANNING = 22;
  public static final int NORTH_PANNING = 23;
  public static final int NORTH_EAST_PANNING = 24;
  public static final int NORTH_WEST_PANNING = 25;
  public static final int SOUTH_PANNING = 26;
  public static final int SOUTH_EAST_PANNING = 27;
  public static final int SOUTH_WEST_PANNING = 28;
  public static final int WEST_PANNING = 29;
  public static final int VERTICAL_TEXT = 30;
  public static final int CELL = 31;
  public static final int CONTEXT_MENU = 32;
  public static final int NO_DROP = 33;
  public static final int NOT_ALLOWED = 34;
  public static final int PROGRESS = 35;
  public static final int ALIAS = 36;
  public static final int ZOOM_IN = 37;
  public static final int ZOOM_OUT = 38;
  public static final int COPY = 39;
  public static final int NONE = 40;
  public static final int GRAB = 41;
  public static final int GRABBING = 42;
  private static CursorManager instance;
  private final Map<Long, T> map = new HashMap();
  
  public static void setCursorManager(CursorManager paramCursorManager)
  {
    instance = paramCursorManager;
  }
  
  public static CursorManager getCursorManager()
  {
    return instance;
  }
  
  protected abstract T getCustomCursor(WCImage paramWCImage, int paramInt1, int paramInt2);
  
  protected abstract T getPredefinedCursor(int paramInt);
  
  public final long getCustomCursorID(WCImageFrame paramWCImageFrame, int paramInt1, int paramInt2)
  {
    return putCursor(getCustomCursor(paramWCImageFrame.getFrame(), paramInt1, paramInt2));
  }
  
  public final long getPredefinedCursorID(int paramInt)
  {
    return putCursor(getPredefinedCursor(paramInt));
  }
  
  public final T getCursor(long paramLong)
  {
    return (T)map.get(Long.valueOf(paramLong));
  }
  
  private long putCursor(T paramT)
  {
    long l = paramT.hashCode();
    map.put(Long.valueOf(l), paramT);
    return l;
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.CursorManager
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.util.concurrent.LinkedBlockingQueue;

class Disposer$DisposerRunnable
  implements Runnable
{
  private static final DisposerRunnable theInstance = new DisposerRunnable();
  private boolean isRunning = false;
  private final Object disposerLock = new Object();
  private final LinkedBlockingQueue<Disposer.WeakDisposerRecord> disposerQueue = new LinkedBlockingQueue();
  
  private static DisposerRunnable getInstance()
  {
    return theInstance;
  }
  
  private void enqueue(Disposer.WeakDisposerRecord paramWeakDisposerRecord)
  {
    synchronized (disposerLock)
    {
      disposerQueue.add(paramWeakDisposerRecord);
      if (!isRunning)
      {
        Invoker.getInvoker().invokeOnEventThread(this);
        isRunning = true;
      }
    }
  }
  
  public void run()
  {
    for (;;)
    {
      Disposer.WeakDisposerRecord localWeakDisposerRecord;
      synchronized (disposerLock)
      {
        localWeakDisposerRecord = (Disposer.WeakDisposerRecord)disposerQueue.poll();
        if (localWeakDisposerRecord == null)
        {
          isRunning = false;
          break;
        }
      }
      localWeakDisposerRecord.run();
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Disposer.DisposerRunnable
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.lang.ref.WeakReference;
import java.util.Set;

public class Disposer$WeakDisposerRecord
  extends WeakReference
  implements DisposerRecord, Runnable
{
  DisposerRecord record;
  
  public Disposer$WeakDisposerRecord(Object paramObject)
  {
    super(paramObject, Disposer.access$200());
  }
  
  public Disposer$WeakDisposerRecord(Object paramObject, DisposerRecord paramDisposerRecord)
  {
    super(paramObject, Disposer.access$200());
    record = paramDisposerRecord;
  }
  
  public void dispose()
  {
    record.dispose();
  }
  
  public void run()
  {
    Disposer.access$300().remove(this);
    dispose();
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Disposer.WeakDisposerRecord
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.io.PrintStream;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.LinkedBlockingQueue;

public class Disposer
  implements Runnable
{
  private static final ReferenceQueue queue = new ReferenceQueue();
  private static final Disposer disposerInstance = new Disposer();
  private static final Set<WeakDisposerRecord> records = new HashSet();
  
  public static void addRecord(Object paramObject, DisposerRecord paramDisposerRecord)
  {
    disposerInstance.add(paramObject, paramDisposerRecord);
  }
  
  synchronized void add(Object paramObject, DisposerRecord paramDisposerRecord)
  {
    records.add(new WeakDisposerRecord(paramObject, paramDisposerRecord));
  }
  
  public void run()
  {
    try
    {
      for (;;)
      {
        WeakDisposerRecord localWeakDisposerRecord = (WeakDisposerRecord)queue.remove();
        localWeakDisposerRecord.clear();
        DisposerRunnable.access$000().enqueue(localWeakDisposerRecord);
      }
    }
    catch (Exception localException)
    {
      System.out.println("Exception while removing reference: " + localException);
      localException.printStackTrace();
    }
  }
  
  static
  {
    Thread localThread = new Thread(disposerInstance, "Disposer");
    localThread.setDaemon(true);
    localThread.setPriority(10);
    localThread.start();
  }
  
  private static class DisposerRunnable
    implements Runnable
  {
    private static final DisposerRunnable theInstance = new DisposerRunnable();
    private boolean isRunning = false;
    private final Object disposerLock = new Object();
    private final LinkedBlockingQueue<Disposer.WeakDisposerRecord> disposerQueue = new LinkedBlockingQueue();
    
    private static DisposerRunnable getInstance()
    {
      return theInstance;
    }
    
    private void enqueue(Disposer.WeakDisposerRecord paramWeakDisposerRecord)
    {
      synchronized (disposerLock)
      {
        disposerQueue.add(paramWeakDisposerRecord);
        if (!isRunning)
        {
          Invoker.getInvoker().invokeOnEventThread(this);
          isRunning = true;
        }
      }
    }
    
    public void run()
    {
      for (;;)
      {
        Disposer.WeakDisposerRecord localWeakDisposerRecord;
        synchronized (disposerLock)
        {
          localWeakDisposerRecord = (Disposer.WeakDisposerRecord)disposerQueue.poll();
          if (localWeakDisposerRecord == null)
          {
            isRunning = false;
            break;
          }
        }
        localWeakDisposerRecord.run();
      }
    }
  }
  
  public static class WeakDisposerRecord
    extends WeakReference
    implements DisposerRecord, Runnable
  {
    DisposerRecord record;
    
    public WeakDisposerRecord(Object paramObject)
    {
      super(Disposer.queue);
    }
    
    public WeakDisposerRecord(Object paramObject, DisposerRecord paramDisposerRecord)
    {
      super(Disposer.queue);
      record = paramDisposerRecord;
    }
    
    public void dispose()
    {
      record.dispose();
    }
    
    public void run()
    {
      Disposer.records.remove(this);
      dispose();
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Disposer
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public abstract interface DisposerRecord
{
  public abstract void dispose();
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.DisposerRecord
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.util.logging.Level;
import java.util.logging.Logger;

public abstract class EventLoop
{
  private static final Logger logger = Logger.getLogger(EventLoop.class.getName());
  private static EventLoop instance;
  
  public static void setEventLoop(EventLoop paramEventLoop)
  {
    instance = paramEventLoop;
  }
  
  private static void fwkCycle()
  {
    logger.log(Level.FINE, "Executing event loop cycle");
    instance.cycle();
  }
  
  protected abstract void cycle();
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.EventLoop
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.io.File;

final class FileSystem
{
  private FileSystem()
  {
    throw new AssertionError();
  }
  
  private static String fwkPathGetFileName(String paramString)
  {
    return new File(paramString).getName();
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.FileSystem
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public abstract interface InputMethodClient
{
  public abstract void activateInputMethods(boolean paramBoolean);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.InputMethodClient
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public abstract interface InspectorClient
{
  public abstract boolean sendMessageToFrontend(String paramString);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.InspectorClient
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.perf.PerfLogger;
import java.util.concurrent.locks.ReentrantLock;

public abstract class Invoker
{
  private static Invoker instance;
  private static PerfLogger locksLog = PerfLogger.getLogger("Locks");
  
  public static synchronized void setInvoker(Invoker paramInvoker)
  {
    instance = paramInvoker;
  }
  
  public static synchronized Invoker getInvoker()
  {
    return instance;
  }
  
  public boolean lock(ReentrantLock paramReentrantLock)
  {
    if (paramReentrantLock.getHoldCount() == 0)
    {
      paramReentrantLock.lock();
      locksLog.resumeCount(isEventThread() ? "EventThread" : "RenderThread");
      return true;
    }
    return false;
  }
  
  public boolean unlock(ReentrantLock paramReentrantLock)
  {
    if (paramReentrantLock.getHoldCount() != 0)
    {
      locksLog.suspendCount(isEventThread() ? "EventThread" : "RenderThread");
      paramReentrantLock.unlock();
      return true;
    }
    return false;
  }
  
  public abstract boolean isEventThread();
  
  public void checkEventThread()
  {
    if (!isEventThread()) {
      throw new IllegalStateException("Current thread is not event thread, current thread: " + Thread.currentThread().getName());
    }
  }
  
  public abstract void invokeOnEventThread(Runnable paramRunnable);
  
  public abstract void postOnEventThread(Runnable paramRunnable);
  
  public abstract void invokeOnRenderThread(Runnable paramRunnable);
  
  public abstract void runOnRenderThread(Runnable paramRunnable);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Invoker
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public abstract interface LoadListenerClient
{
  public static final int PAGE_STARTED = 0;
  public static final int PAGE_FINISHED = 1;
  public static final int PAGE_REDIRECTED = 2;
  public static final int LOAD_FAILED = 5;
  public static final int LOAD_STOPPED = 6;
  public static final int CONTENT_RECEIVED = 10;
  public static final int TITLE_RECEIVED = 11;
  public static final int ICON_RECEIVED = 12;
  public static final int CONTENTTYPE_RECEIVED = 13;
  public static final int DOCUMENT_AVAILABLE = 14;
  public static final int RESOURCE_STARTED = 20;
  public static final int RESOURCE_REDIRECTED = 21;
  public static final int RESOURCE_FINISHED = 22;
  public static final int RESOURCE_FAILED = 23;
  public static final int PROGRESS_CHANGED = 30;
  public static final int UNKNOWN_HOST = 1;
  public static final int MALFORMED_URL = 2;
  public static final int SSL_HANDSHAKE = 3;
  public static final int CONNECTION_REFUSED = 4;
  public static final int CONNECTION_RESET = 5;
  public static final int NO_ROUTE_TO_HOST = 6;
  public static final int CONNECTION_TIMED_OUT = 7;
  public static final int PERMISSION_DENIED = 8;
  public static final int INVALID_RESPONSE = 9;
  public static final int TOO_MANY_REDIRECTS = 10;
  public static final int FILE_NOT_FOUND = 11;
  public static final int UNKNOWN_ERROR = 99;
  
  public abstract void dispatchLoadEvent(long paramLong, int paramInt1, String paramString1, String paramString2, double paramDouble, int paramInt2);
  
  public abstract void dispatchResourceLoadEvent(long paramLong, int paramInt1, String paramString1, String paramString2, double paramDouble, int paramInt2);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.LoadListenerClient
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Locale;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
import java.util.ResourceBundle.Control;
import java.util.logging.Level;
import java.util.logging.Logger;

class LocalizedStrings$EncodingResourceBundleControl
  extends ResourceBundle.Control
{
  private String encoding;
  
  public LocalizedStrings$EncodingResourceBundleControl(String paramString)
  {
    encoding = paramString;
  }
  
  public ResourceBundle newBundle(String paramString1, Locale paramLocale, String paramString2, ClassLoader paramClassLoader, boolean paramBoolean)
    throws IllegalAccessException, InstantiationException, IOException
  {
    String str1 = toBundleName(paramString1, paramLocale);
    String str2 = toResourceName(str1, "properties");
    URL localURL = paramClassLoader.getResource(str2);
    if (localURL != null) {
      try
      {
        return new PropertyResourceBundle(new InputStreamReader(localURL.openStream(), encoding));
      }
      catch (Exception localException)
      {
        LocalizedStrings.access$000().log(Level.FINE, "exception thrown during bundle initialization", localException);
      }
    }
    return super.newBundle(paramString1, paramLocale, paramString2, paramClassLoader, paramBoolean);
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.LocalizedStrings.EncodingResourceBundleControl
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Locale;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
import java.util.ResourceBundle.Control;
import java.util.logging.Level;
import java.util.logging.Logger;

public final class LocalizedStrings
{
  private static final Logger log = Logger.getLogger(LocalizedStrings.class.getName());
  private static ResourceBundle.Control utfResourceBundleControl = new EncodingResourceBundleControl("utf-8");
  private static String baseName;
  
  public static void setResourceBundleBaseName(String paramString)
  {
    baseName = paramString;
  }
  
  public static String getLocalizedProperty(String paramString)
  {
    log.log(Level.FINE, "Get property: " + paramString);
    try
    {
      ResourceBundle localResourceBundle = ResourceBundle.getBundle(baseName, Locale.getDefault(), utfResourceBundleControl);
      if (localResourceBundle != null)
      {
        String str = localResourceBundle.getString(paramString);
        if ((str != null) && (str.trim().length() > 0))
        {
          log.log(Level.FINE, "Property value: " + str);
          return str.trim();
        }
      }
    }
    catch (Exception localException)
    {
      log.log(Level.FINE, "exception thrown during bundle initialization", localException);
    }
    log.log(Level.FINE, "Unknown property value");
    return null;
  }
  
  private static class EncodingResourceBundleControl
    extends ResourceBundle.Control
  {
    private String encoding;
    
    public EncodingResourceBundleControl(String paramString)
    {
      encoding = paramString;
    }
    
    public ResourceBundle newBundle(String paramString1, Locale paramLocale, String paramString2, ClassLoader paramClassLoader, boolean paramBoolean)
      throws IllegalAccessException, InstantiationException, IOException
    {
      String str1 = toBundleName(paramString1, paramLocale);
      String str2 = toResourceName(str1, "properties");
      URL localURL = paramClassLoader.getResource(str2);
      if (localURL != null) {
        try
        {
          return new PropertyResourceBundle(new InputStreamReader(localURL.openStream(), encoding));
        }
        catch (Exception localException)
        {
          LocalizedStrings.log.log(Level.FINE, "exception thrown during bundle initialization", localException);
        }
      }
      return super.newBundle(paramString1, paramLocale, paramString2, paramClassLoader, paramBoolean);
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.LocalizedStrings
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public abstract class MenuManager
{
  private static MenuManager instance;
  
  public static void setMenuManager(MenuManager paramMenuManager)
  {
    instance = paramMenuManager;
  }
  
  public static MenuManager getMenuManager()
  {
    return instance;
  }
  
  public abstract PopupMenu createPopupMenu();
  
  public abstract ContextMenu createContextMenu();
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.MenuManager
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public final class PageCache
{
  private PageCache()
  {
    throw new AssertionError();
  }
  
  public static int getCapacity()
  {
    return twkGetCapacity();
  }
  
  public static void setCapacity(int paramInt)
  {
    if (paramInt < 0) {
      throw new IllegalArgumentException("capacity is negative:" + paramInt);
    }
    twkSetCapacity(paramInt);
  }
  
  private static native int twkGetCapacity();
  
  private static native void twkSetCapacity(int paramInt);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.PageCache
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.WCImageFrame;

public abstract interface Pasteboard
{
  public abstract String getPlainText();
  
  public abstract String getHtml();
  
  public abstract void writePlainText(String paramString);
  
  public abstract void writeSelection(boolean paramBoolean, String paramString1, String paramString2);
  
  public abstract void writeImage(WCImageFrame paramWCImageFrame);
  
  public abstract void writeUrl(String paramString1, String paramString2);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Pasteboard
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.WCImageFrame;

class PasteboardSimple
  implements Pasteboard
{
  private String text;
  private String url;
  private String html;
  
  public synchronized String getPlainText()
  {
    if ((text != null) && (!text.isEmpty())) {
      return text;
    }
    if ((url != null) && (!url.isEmpty())) {
      return url;
    }
    return html;
  }
  
  public synchronized String getHtml()
  {
    return html;
  }
  
  public void writePlainText(String paramString)
  {
    text = paramString;
  }
  
  public synchronized void writeSelection(boolean paramBoolean, String paramString1, String paramString2)
  {
    text = paramString1;
    html = paramString2;
  }
  
  public synchronized void writeImage(WCImageFrame paramWCImageFrame) {}
  
  public synchronized void writeUrl(String paramString1, String paramString2)
  {
    url = paramString1;
    writeSelection(false, paramString1, paramString2);
  }
  
  public synchronized void clear()
  {
    text = null;
    url = null;
    html = null;
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.PasteboardSimple
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.net.URL;

public abstract interface PolicyClient
{
  public abstract boolean permitNavigateAction(long paramLong, URL paramURL);
  
  public abstract boolean permitRedirectAction(long paramLong, URL paramURL);
  
  public abstract boolean permitAcceptResourceAction(long paramLong, URL paramURL);
  
  public abstract boolean permitSubmitDataAction(long paramLong, URL paramURL, String paramString);
  
  public abstract boolean permitResubmitDataAction(long paramLong, URL paramURL, String paramString);
  
  public abstract boolean permitEnableScriptsAction(long paramLong, URL paramURL);
  
  public abstract boolean permitNewPageAction(long paramLong, URL paramURL);
  
  public abstract boolean permitClosePageAction(long paramLong);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.PolicyClient
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.WCFont;

public abstract class PopupMenu
{
  private long pdata;
  
  public abstract void show(WebPage paramWebPage, int paramInt1, int paramInt2, int paramInt3);
  
  public abstract void hide();
  
  public abstract void setSelectedItem(int paramInt);
  
  public abstract void appendItem(String paramString, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, int paramInt1, int paramInt2, WCFont paramWCFont);
  
  public void notifySelectionCommited(int paramInt)
  {
    twkSelectionCommited(pdata, paramInt);
  }
  
  public void notifyPopupClosed()
  {
    twkPopupClosed(pdata);
  }
  
  private static PopupMenu fwkCreatePopupMenu(long paramLong)
  {
    if (MenuManager.getMenuManager() != null)
    {
      PopupMenu localPopupMenu = MenuManager.getMenuManager().createPopupMenu();
      pdata = paramLong;
      return localPopupMenu;
    }
    return null;
  }
  
  private void fwkShow(WebPage paramWebPage, int paramInt1, int paramInt2, int paramInt3)
  {
    assert (paramWebPage != null);
    show(paramWebPage, paramInt1, paramInt2, paramInt3);
  }
  
  private void fwkHide()
  {
    hide();
  }
  
  private void fwkSetSelectedItem(int paramInt)
  {
    setSelectedItem(paramInt);
  }
  
  private void fwkAppendItem(String paramString, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, int paramInt1, int paramInt2, WCFont paramWCFont)
  {
    appendItem(paramString, paramBoolean1, paramBoolean2, paramBoolean3, paramInt1, paramInt2, paramWCFont);
  }
  
  private void fwkDestroy()
  {
    pdata = 0L;
  }
  
  private native void twkSelectionCommited(long paramLong, int paramInt);
  
  private native void twkPopupClosed(long paramLong);
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.PopupMenu
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

public class ServiceProvider
{
  private static ServiceProvider instance;
  
  public static synchronized ServiceProvider getInstance()
  {
    if (instance == null) {
      instance = new ServiceProvider();
    }
    return instance;
  }
  
  public static synchronized void setServiceProvider(ServiceProvider paramServiceProvider)
  {
    instance = paramServiceProvider;
  }
  
  public Pasteboard createPasteboard()
  {
    return new PasteboardSimple();
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.ServiceProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.RenderTheme;
import com.sun.webpane.platform.graphics.ScrollBarTheme;

public abstract class ThemeClient
{
  private static RenderTheme defaultRenderTheme;
  
  public static void setDefaultRenderTheme(RenderTheme paramRenderTheme)
  {
    defaultRenderTheme = paramRenderTheme;
  }
  
  public static RenderTheme getDefaultRenderTheme()
  {
    return defaultRenderTheme;
  }
  
  public abstract RenderTheme createRenderTheme();
  
  public abstract ScrollBarTheme createScrollBarTheme();
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.ThemeClient
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.WCImage;
import com.sun.webpane.platform.graphics.WCRectangle;

public abstract interface UIClient
{
  public abstract WebPage createPage(boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4);
  
  public abstract void closePage();
  
  public abstract void showView();
  
  public abstract WCRectangle getViewBounds();
  
  public abstract void setViewBounds(WCRectangle paramWCRectangle);
  
  public abstract void setStatusbarText(String paramString);
  
  public abstract void alert(String paramString);
  
  public abstract boolean confirm(String paramString);
  
  public abstract String prompt(String paramString1, String paramString2);
  
  public abstract String chooseFile(String paramString);
  
  public abstract void print();
  
  public abstract void startDrag(WCImage paramWCImage, int paramInt1, int paramInt2, int paramInt3, int paramInt4, String[] paramArrayOfString, Object[] paramArrayOfObject);
  
  public abstract void confirmStartDrag();
  
  public abstract boolean isDragConfirmed();
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.UIClient
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.lang.reflect.Method;
import java.security.PrivilegedExceptionAction;
import sun.reflect.misc.MethodUtil;

final class Utilities$1
  implements PrivilegedExceptionAction<Object>
{
  Utilities$1(Method paramMethod, Object paramObject, Object[] paramArrayOfObject) {}
  
  public Object run()
    throws Exception
  {
    return MethodUtil.invoke(val$method, val$instance, val$args);
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Utilities.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import java.util.Map;

final class Utilities$MimeTypeMapHolder
{
  private static final Map<String, String> MIME_TYPE_MAP = ;
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Utilities.MimeTypeMapHolder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.WCImage;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.security.AccessControlContext;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.util.HashMap;
import java.util.Map;
import sun.reflect.misc.MethodUtil;

public abstract class Utilities
{
  private static Utilities instance;
  
  public static synchronized void setUtilities(Utilities paramUtilities)
  {
    instance = paramUtilities;
  }
  
  public static synchronized Utilities getUtilities()
  {
    return instance;
  }
  
  public abstract WCImage getIconImage(String paramString);
  
  public abstract Object toPlatformImage(WCImage paramWCImage);
  
  private static String fwkGetMIMETypeForExtension(String paramString)
  {
    return (String)MimeTypeMapHolder.MIME_TYPE_MAP.get(paramString);
  }
  
  private static Map<String, String> createMimeTypeMap()
  {
    HashMap localHashMap = new HashMap(21);
    localHashMap.put("txt", "text/plain");
    localHashMap.put("html", "text/html");
    localHashMap.put("htm", "text/html");
    localHashMap.put("css", "text/css");
    localHashMap.put("xml", "text/xml");
    localHashMap.put("xsl", "text/xsl");
    localHashMap.put("js", "application/x-javascript");
    localHashMap.put("xhtml", "application/xhtml+xml");
    localHashMap.put("svg", "image/svg+xml");
    localHashMap.put("svgz", "image/svg+xml");
    localHashMap.put("gif", "image/gif");
    localHashMap.put("jpg", "image/jpeg");
    localHashMap.put("jpeg", "image/jpeg");
    localHashMap.put("png", "image/png");
    localHashMap.put("tif", "image/tiff");
    localHashMap.put("tiff", "image/tiff");
    localHashMap.put("ico", "image/ico");
    localHashMap.put("cur", "image/ico");
    localHashMap.put("bmp", "image/bmp");
    localHashMap.put("mp3", "audio/mpeg");
    return localHashMap;
  }
  
  private static String[] fwkGetExtensionsForMIMEType(String paramString)
  {
    if ("application/x-shockwave-flash".equalsIgnoreCase(paramString)) {
      return new String[] { "swf", "flv" };
    }
    return new String[0];
  }
  
  private static Object fwkInvokeWithContext(Method paramMethod, final Object paramObject, final Object[] paramArrayOfObject, AccessControlContext paramAccessControlContext)
    throws Throwable
  {
    try
    {
      AccessController.doPrivileged(new PrivilegedExceptionAction()
      {
        public Object run()
          throws Exception
        {
          return MethodUtil.invoke(val$method, paramObject, paramArrayOfObject);
        }
      }, paramAccessControlContext);
    }
    catch (PrivilegedActionException localPrivilegedActionException)
    {
      Object localObject = localPrivilegedActionException.getCause();
      if (localObject == null) {
        localObject = localPrivilegedActionException;
      } else if (((localObject instanceof InvocationTargetException)) && (((Throwable)localObject).getCause() != null)) {
        localObject = ((Throwable)localObject).getCause();
      }
      throw ((Throwable)localObject);
    }
  }
  
  private static final class MimeTypeMapHolder
  {
    private static final Map<String, String> MIME_TYPE_MAP = ;
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.Utilities
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.javafx.runtime.NativeLibLoader;
import java.security.PrivilegedAction;
import java.util.logging.Logger;

final class WebPage$1
  implements PrivilegedAction<Void>
{
  public Void run()
  {
    String str1 = System.getProperty("os.name");
    String str2 = System.getProperty("os.arch");
    String str3 = null;
    if (str1.startsWith("Windows")) {
      str3 = "windows";
    } else if (str1.startsWith("
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd