Top Description Inners Fields Constructors Methods
com.sun.webkit

public final Class WebPage

extends Object
Class Inheritance
Imports
javafx.application.ConditionalFeature, .Platform, javafx.scene.paint.Color, com.sun.glass.utils.NativeLibLoader, com.sun.javafx.logging.PlatformLogger, .PlatformLogger.Level, com.sun.javafx.tk.Toolkit, com.sun.webkit.event.WCFocusEvent, .WCInputMethodEvent, .WCKeyEvent, .WCMouseEvent, .WCMouseWheelEvent, com.sun.webkit.graphics.*, com.sun.webkit.network.CookieManager, java.net.CookieHandler, .MalformedURLException, .URL, java.nio.ByteBuffer, .ByteOrder, java.util.ArrayList, .HashMap, .HashSet, .Iterator, .LinkedList, .List, .Map, .Queue, .Set, java.util.concurrent.CountDownLatch, .ExecutionException, .FutureTask, java.util.concurrent.atomic.AtomicReference, java.util.concurrent.locks.ReentrantLock, netscape.javascript.JSException, org.w3c.dom.Document, .Element

This class provides two-side interaction between native webkit core and number of clients representing different subsystems of the WebPane component such as

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private WCPageBackBuffer
private int
private WebPage.RenderFrame
private static final int
private List<WCRectangle>
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
private static boolean
private int
private final Queue<WebPage.RenderFrame>
private final Set<Long>
private int
private final WCFrameView
private InputMethodClient
private final InspectorClient
private boolean
private final List<LoadListenerClient>
private static final PlatformLogger
private static final int
private static final ReentrantLock
private final WebPageClient<T>
private static final PlatformLogger
private final PolicyClient
private long
private final RenderTheme
private final Set<Integer>
private final Map<Integer, String>
private final ScrollBarTheme
private final UIClient
private int
private int

Constructor Summary

AccessConstructor and Description
public
WebPage(WebPageClient<T> pageClient, UIClient uiClient, PolicyClient policyClient, InspectorClient inspectorClient, ThemeClient themeClient, boolean editable)

Method Summary

Modifier and TypeMethod and Description
private void
public void
public float
adjustFrameHeight(long frameID, float oldTop, float oldBottom, float bottomLimit)

public int
beginPrinting(float width, float height)

private static void
public void
public void
public boolean
copy()

public BackForwardList
public void
public int
dispatchDragOperation(int commandId, String[] mimeTypes, String[] values, int x, int y, int screenX, int screenY, int dndActionId)

public void
public boolean
public void
public boolean
public boolean
public boolean
public void
public void
public void
public boolean
executeCommand(String command, String value)

public Object
executeScript(long frameID, String script)

public boolean
find(String stringToFind, boolean forward, boolean wrap, boolean matchCase)

public boolean
find(long frameID, String stringToFind, boolean forward, boolean wrap, boolean matchCase)

private void
fireLoadEvent(long frameID, int state, String url, String contentType, double progress, int errorCode)

private void
fireResourceLoadEvent(long frameID, int state, String url, String contentType, double progress, int errorCode)

public void
private void
fwkAddMessageToConsole(String message, int lineNumber, String sourceId)

private void
private boolean
private String[]
fwkChooseFile(String initialFileName, boolean multiple, String mimeFilters)

private void
private boolean
private WebPage
fwkCreateWindow(boolean menu, boolean status, boolean toolbar, boolean resizable)

private void
fwkDidClearWindowObject(long pContext, long pWindowObject)

private void
fwkFireLoadEvent(long frameID, int state, String url, String contentType, double progress, int errorCode)

private void
fwkFireResourceLoadEvent(long frameID, int state, int id, String contentType, double progress, int errorCode)

private void
fwkFrameCreated(long frameID)

private void
fwkFrameDestroyed(long frameID)

private static RenderTheme
private WCRectangle
private WCRectangle
private boolean
private boolean
private boolean
fwkPermitNavigateAction(long pFrame, String url)

private boolean
fwkPermitNewWindowAction(long pFrame, String url)

private boolean
fwkPermitRedirectAction(long pFrame, String url)

private boolean
fwkPermitSubmitDataAction(long pFrame, String url, String httpMethod, boolean isSubmit)

private void
private String
fwkPrompt(String text, String defaultValue)

private void
fwkRemoveRequestURL(long pFrame, int id)

private void
fwkRepaint(int x, int y, int w, int h)

private void
private boolean
private WCPoint
private void
fwkScroll(int x, int y, int w, int h, int deltaX, int deltaY)

private boolean
private void
fwkSetCursor(long id)

private void
fwkSetFocus(boolean focus)

private void
fwkSetRequestURL(long pFrame, int id, String url)

private void
fwkSetScrollbarsVisible(boolean visible)

private void
private void
private void
fwkSetWindowBounds(int x, int y, int w, int h)

private void
private void
fwkStartDrag(Object image, int imageOffsetX, int imageOffsetY, int eventPosX, int eventPosY, String[] mimeTypes, Object[] values, boolean isImageSource)

private void
fwkTransferFocus(boolean forward)

private WCPoint
public List<Long>
getChildFrames(long parentID)

public String
public int
public int
public int
public String
public int[]
public WCSize
getContentSize(long frameID)

public String
getContentType(long frameID)

public boolean
public Document
getDocument(long frameID)

public String
public int
getFrameHeight(long frameID)

private WCWidget
public String
getHtml(long frameID)

Returns: HTML content of the frame, or null if frame document is absent or non-HTML.

public WCImage
getIcon(long frameID)

public String
getInnerText(long frameID)

private static int
public long
public String
getName(long frameID)

public Element
getOwnerElement(long frameID)

pack-priv long
public WebPageClient<T>
public int
public long
getParentFrame(long childID)

private RenderTheme
public String
getRenderTree(long frameID)

private ScrollBarTheme
public String
getTitle(long frameID)

public int
public int
public String
getURL(long frameID)

public boolean

Returns:

true if this object uses the page cache, false otherwise.
getUsePageCache
()

Returns the usePageCache settings field.

public String
public WCRectangle
getVisibleRect(long frameID)

public static int
public float
getZoomFactor(boolean textOnly)

public boolean
public boolean
private boolean
private boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
load(final long frameID, final String text, final String contentType)

pack-priv static boolean
public void
open(final long frameID, final String url)

public void
public void
paint(WCGraphicsContext gc, int x, int y, int w, int h)

private void
private boolean
public boolean
public boolean
public String
public void
refresh(final long frameID)

private void
public void
reset(long frameID)

public void
private void
scroll(int x, int y, int w, int h, int dx, int dy)

public void
scrollToPosition(long frameID, WCPoint p)

public void
setBackgroundColor(long frameID, int backgroundColor)

public void
setBackgroundColor(Color backgroundColor)

public void
setBackgroundColor(int backgroundColor)

public void
setBounds(int x, int y, int w, int h)

public void
setContextMenuEnabled(boolean enable)

public void
setDeveloperExtrasEnabled(boolean enabled)

public void
setEditable(boolean editable)

public void
setEncoding(String encoding)

public void
setFontSmoothingType(int fontSmoothingType)

public void
public void
setInputMethodState(boolean state)

public void
setJavaScriptEnabled(boolean enable)

public void
public void
setLocalStorageEnabled(boolean enabled)

public void
setOpaque(long frameID, boolean isOpaque)

public void
setUsePageCache(boolean
true to use the page cache, false to not use the page cache.
usePageCache
)

Sets the usePageCache settings field.

public void
setUserAgent(String userAgent)

public void
public void
setZoomFactor(float zoomFactor, boolean textOnly)

public void
stop(final long frameID)

public void
stop()

private URL
pack-priv int
private native float
twkAdjustFrameHeight(long pFrame, float oldTop, float oldBottom, float bottomLimit)

private native int
twkBeginPrinting(long pPage, float width, float height)

private native void
private native boolean
twkCopy(long pFrame)

private native long
twkCreatePage(boolean editable)

private native void
twkDestroyPage(long pPage)

private native void
private native void
private static native void
private native void
twkEndPrinting(long pPage)

private native boolean
twkExecuteCommand(long page, String command, String value)

private native Object
twkExecuteScript(long pFrame, String script)

private native boolean
twkFindInFrame(long pFrame, String stringToFind, boolean forward, boolean wrap, boolean matchCase)

private native boolean
twkFindInPage(long pPage, String stringToFind, boolean forward, boolean wrap, boolean matchCase)

private native long[]
twkGetChildFrames(long pFrame)

private native String
twkGetCommittedText(long pPage)

private native int
private native int[]
twkGetContentSize(long pFrame)

private native String
twkGetContentType(long pFrame)

private native boolean
private static native Document
twkGetDocument(long pFrame)

private native String
twkGetEncoding(long pPage)

private native int
twkGetFrameHeight(long pFrame)

private native String
twkGetHtml(long pFrame)

private native String
twkGetIconURL(long pFrame)

private native String
twkGetInnerText(long pFrame)

private native int
private native long
twkGetMainFrame(long pPage)

private native String
twkGetName(long pFrame)

private static native Element
twkGetOwnerElement(long pFrame)

private native long
twkGetParentFrame(long pFrame)

private native String
twkGetRenderTree(long pFrame)

private native String
twkGetSelectedText(long pPage)

private native int[]
twkGetTextLocation(long pPage, int charIndex)

private native String
twkGetTitle(long pFrame)

private native int
private native String
twkGetURL(long pFrame)

private native boolean
twkGetUsePageCache(long page)

private native String
twkGetUserAgent(long page)

private native int[]
twkGetVisibleRect(long pFrame)

private native float
twkGetZoomFactor(long pFrame, boolean textOnly)

private native boolean
twkGoBackForward(long pPage, int distance)

private native void
twkInit(long pPage, boolean usePlugins, float devicePixelScale)

private static native void
twkInitWebCore(boolean useJIT, boolean useDFGJIT, boolean useCSS3D)

private native boolean
private native boolean
twkIsEditable(long page)

private native boolean
private native boolean
twkIsLoading(long pFrame)

private native void
twkLoad(long pFrame, String text, String contentType)

private native void
twkOpen(long pFrame, String url)

private native void
twkOverridePreference(long pPage, String key, String value)

private native void
twkPostPaint(long pPage, WCRenderQueue rq, int x, int y, int w, int h)

private native void
twkPrePaint(long pPage)

private native void
twkPrint(long pPage, WCRenderQueue gc, int pageNumber, float width)

private native boolean
twkProcessCaretPositionChange(long pPage, int caretPosition)

private native int
twkProcessDrag(long page, int commandId, String[] mimeTypes, String[] values, int x, int y, int screenX, int screenY, int dndActionId)

private native void
twkProcessFocusEvent(long pPage, int id, int direction)

private native boolean
twkProcessInputTextChange(long pPage, String committed, String composed, int[] attributes, int caretPosition)

private native boolean
twkProcessKeyEvent(long pPage, int type, String text, String keyIdentifier, int windowsVirtualKeyCode, boolean shift, boolean ctrl, boolean alt, boolean meta, double when)

private native boolean
twkProcessMouseEvent(long pPage, int id, int button, int buttonMask, int clickCount, int x, int y, int sx, int sy, boolean shift, boolean control, boolean alt, boolean meta, boolean popupTrigger, double when)

private native boolean
twkProcessMouseWheelEvent(long pPage, int x, int y, int sx, int sy, float dx, float dy, boolean shift, boolean control, boolean alt, boolean meta, double when)

private native boolean
twkQueryCommandEnabled(long page, String command)

private native boolean
twkQueryCommandState(long page, String command)

private native String
twkQueryCommandValue(long page, String command)

private native void
twkRefresh(long pFrame)

private native void
twkReset(long pFrame)

private native void
private native void
twkScrollToPosition(long pFrame, int x, int y)

private native void
twkSetBackgroundColor(long pFrame, int backgroundColor)

private native void
twkSetBounds(long pPage, int x, int y, int w, int h)

private native void
twkSetContextMenuEnabled(long page, boolean enable)

private native void
twkSetDeveloperExtrasEnabled(long page, boolean enabled)

private native void
twkSetEditable(long page, boolean editable)

private native void
twkSetEncoding(long pPage, String encoding)

private native void
twkSetJavaScriptEnabled(long page, boolean enable)

private native void
private native void
twkSetLocalStorageEnabled(long page, boolean enabled)

private native void
twkSetTransparent(long pFrame, boolean isTransparent)

private native void
twkSetUsePageCache(long page, boolean usePageCache)

private native void
twkSetUserAgent(long page, String userAgent)

private native void
private native void
twkSetZoomFactor(long pFrame, float zoomFactor, boolean textOnly)

private native void
twkStop(long pFrame)

private native void
twkStopAll(long pPage)

private native void
twkUpdateContent(long pPage, WCRenderQueue rq, int x, int y, int w, int h)

private native void
twkUpdateRendering(long pPage)

private static native int
pack-priv static boolean
public void
private void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait