Class BrowserView

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public final class BrowserView extends JComponent
A Swing UI component that displays content of the resources loaded in the Browser instance associated with it.

This component represents a container that contains other UI components. Depending on the rendering mode the Engine of the associated Browser instance is configured with, this component may consist of both heavyweight and lightweight components.

See Also:
  • Method Details

    • newInstance

      public static BrowserView newInstance(Browser browser)
      Creates a new BrowserView instance that displays the given browser instance.
      Parameters:
      browser - Browser instance that will be rendered in the current view
      Returns:
      a new BrowserView instance
    • getBrowser

      public Browser getBrowser()
      Returns the Browser instance associated with the current view.
    • requestFocus

      public void requestFocus()
      Overrides:
      requestFocus in class JComponent
    • requestFocus

      public boolean requestFocus(boolean temporary)
      Overrides:
      requestFocus in class JComponent
    • requestFocusInWindow

      public boolean requestFocusInWindow()
      Overrides:
      requestFocusInWindow in class JComponent
    • setVisible

      public void setVisible(boolean visible)
      Overrides:
      setVisible in class JComponent
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • dragAndDrop

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