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 Type
    Method
    Description
    org.eclipse.swt.graphics.Point
    computeSize(int wHint, int hHint, boolean changed)
     
    Returns DragAndDrop that allows managing the drag and drop functionality for this BrowserView.
    Returns the Browser instance of the current view.
    newInstance(org.eclipse.swt.widgets.Composite parent, Browser browser)
    Creates a new BrowserView instance that displays the given browser 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • newInstance

      public static BrowserView newInstance(org.eclipse.swt.widgets.Composite parent, Browser browser)
      Creates a new BrowserView instance that displays the given browser instance.
      Parameters:
      parent - the parent container for the new BrowserView instance
      browser - Browser instance that will be rendered in the current view
      Returns:
      a new BrowserView instance
    • getBrowser

      public Browser getBrowser()
      Returns the Browser instance of the current view.
    • computeSize

      public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
      Overrides:
      computeSize in class org.eclipse.swt.widgets.Control
    • setSize

      public void setSize(int width, int height)
      Overrides:
      setSize in class org.eclipse.swt.widgets.Control
    • setBounds

      public void setBounds(int x, int y, int width, int height)
      Overrides:
      setBounds in class org.eclipse.swt.widgets.Control
    • setBounds

      public void setBounds(org.eclipse.swt.graphics.Rectangle rectangle)
      Overrides:
      setBounds in class org.eclipse.swt.widgets.Control
    • setVisible

      public void setVisible(boolean visible)
      Overrides:
      setVisible in class org.eclipse.swt.widgets.Control
    • dragAndDrop

      public DragAndDrop dragAndDrop()
      Returns DragAndDrop that allows managing the drag and drop functionality for this BrowserView.
      Since:
      7.19