Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JBrowser Source Code Files
JBrowser Source Code Files are provided in the
source package file.
You can download JBrowser source package as described in the previous tutorial and go to the "src" sub-folder to view Source Code files.
You can also browse JBrowser Source Code files below:
✍: FYIcenter
⏎ ru/atomation/jbrowser/abstracts/AbstractBrowserWindowCreator.java
package ru.atomation.jbrowser.abstracts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.mozilla.interfaces.nsISupports;
import org.mozilla.interfaces.nsIWebBrowserChrome;
import org.mozilla.xpcom.Mozilla;
import ru.atomation.jbrowser.impl.JBrowserComponent;
import ru.atomation.jbrowser.interfaces.BrowserWindowCreator;
import ru.atomation.jbrowser.interfaces.ComponentFacotry;
import ru.atomation.jbrowser.interfaces.NativeBrowser;
public abstract class AbstractBrowserWindowCreator implements BrowserWindowCreator {
protected final List<ComponentFacotry<?>> interceptors;
protected ComponentFacotry<?> browserFactory;
protected boolean attachOnCreation;
public AbstractBrowserWindowCreator() {
interceptors = Collections.synchronizedList(new ArrayList<ComponentFacotry<?>>());
attachOnCreation = false;
}
@Override
public void addInterceptor(ComponentFacotry<?> factory) {
synchronized (interceptors) {
interceptors.add(factory);
}
}
@Override
public void removeInterceptor(ComponentFacotry<?> factory) {
synchronized (interceptors) {
interceptors.remove(factory);
}
}
@Override
public nsIWebBrowserChrome createChromeWindow(nsIWebBrowserChrome parent,
long flags) {
if (parent instanceof JBrowserComponent<?>) {
synchronized (interceptors) {
for (int i = interceptors.size() - 1; i > -1; i++) {
JBrowserComponent<?> created = interceptors.get(i).createBrowser((JBrowserComponent<?>) parent, attachOnCreation, flags);
if (created != null && created instanceof NativeBrowser) {
return (NativeBrowser) created;
}
}
}
}
return createWindow(parent, flags);
}
@Override
public nsISupports queryInterface(String aIID) {
return Mozilla.queryInterface(this, aIID);
}
@Override
public void setBrowserFactory(ComponentFacotry<?> factory) {
this.browserFactory = factory;
}
@Override
public ComponentFacotry<?> getBrowserFactory() {
return browserFactory;
}
public void setAttachOnCreation(boolean attachOnCreation) {
this.attachOnCreation = attachOnCreation;
}
}
⏎ ru/atomation/jbrowser/abstracts/AbstractBrowserWindowCreator.java
Or download all of them as a single archive file:
File name: jbrowser-1.9-fyi.zip File size: 625318 bytes Release date: 2022-11-10 Download
⇐ Download and Install JBrowser Source Package
2017-07-17, ≈27🔥, 1💬
Popular Posts:
commons-lang-2.6.jar is the JAR file for Apache Commons Lang 2.6, which provides a host of helper ut...
JDK 11 java.smartcardio.jmod is the JMOD file for JDK 11 Smartcardio module. JDK 11 Smart Card IO mo...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 jrt-fs.jar is the JAR file for JDK 11 JRT-FS (Java RunTime - File System) defined in the "jdk...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...