Package com.teamdev.jxbrowser.view.swt
Class BrowserView
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.teamdev.jxbrowser.view.swt.BrowserView
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public final class BrowserView
extends org.eclipse.swt.widgets.Composite
An SWT widget that displays content loaded in the given
Browser
instance. This widget can
be embedded into any SWT composite such as Shell
, Composite
, etc.-
Field Summary
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandle
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.Point
computeSize
(int wHint, int hHint, boolean changed) ReturnsDragAndDrop
that allows managing the drag and drop functionality for thisBrowserView
.Returns theBrowser
instance of the current view.static BrowserView
newInstance
(org.eclipse.swt.widgets.Composite parent, Browser browser) Creates a newBrowserView
instance that displays the givenbrowser
instance.void
setBounds
(int x, int y, int width, int height) void
setBounds
(org.eclipse.swt.graphics.Rectangle rectangle) void
setSize
(int width, int height) void
setVisible
(boolean visible) Methods inherited from class org.eclipse.swt.widgets.Composite
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isAutoScalable, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setTextDirection, setToolTipText, setTouchEnabled, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData
-
Method Details
-
newInstance
Creates a newBrowserView
instance that displays the givenbrowser
instance.- Parameters:
parent
- the parent container for the newBrowserView
instancebrowser
-Browser
instance that will be rendered in the current view- Returns:
- a new
BrowserView
instance
-
getBrowser
Returns theBrowser
instance of the current view. -
computeSize
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed) - Overrides:
computeSize
in classorg.eclipse.swt.widgets.Control
-
setSize
public void setSize(int width, int height) - Overrides:
setSize
in classorg.eclipse.swt.widgets.Control
-
setBounds
public void setBounds(int x, int y, int width, int height) - Overrides:
setBounds
in classorg.eclipse.swt.widgets.Control
-
setBounds
public void setBounds(org.eclipse.swt.graphics.Rectangle rectangle) - Overrides:
setBounds
in classorg.eclipse.swt.widgets.Control
-
setVisible
public void setVisible(boolean visible) - Overrides:
setVisible
in classorg.eclipse.swt.widgets.Control
-
dragAndDrop
ReturnsDragAndDrop
that allows managing the drag and drop functionality for thisBrowserView
.- Since:
- 7.19
-