Class BrowserFactory
java.lang.Object
com.developer.nefarious.zjoule.plugin.core.ui.BrowserFactory
Factory class for creating
Browser
instances in an SWT application.
This utility class provides a method to instantiate Browser
components
with a specified parent composite and style.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.swt.browser.Browser
create
(org.eclipse.swt.widgets.Composite parent, int style) Creates a newBrowser
instance with the specified parent and style.
-
Method Details
-
create
public static org.eclipse.swt.browser.Browser create(org.eclipse.swt.widgets.Composite parent, int style) Creates a newBrowser
instance with the specified parent and style.- Parameters:
parent
- the parentComposite
that will contain the browser.style
- the style flags for the browser.- Returns:
- a newly created
Browser
instance.
-