예제 #1
0
 @Override
 public boolean isScrollbarVisible() {
   return MozillaExecutor.mozSyncExecQuiet(
       new Callable<Boolean>() {
         @Override
         public Boolean call() throws Exception {
           return browser.getWebBrowser().getContentDOMWindow().getScrollbars().getVisible();
         }
       });
 }
예제 #2
0
 @Override
 public void scrollTo(final int xScroll, final int yScroll) {
   MozillaExecutor.mozSyncExec(
       new Runnable() {
         @Override
         public void run() {
           browser.getWebBrowser().getContentDOMWindow().scrollTo(xScroll, yScroll);
         }
       });
 }
예제 #3
0
 @Override
 public void scrollByPages(final int numPages) {
   MozillaExecutor.mozSyncExec(
       new Runnable() {
         @Override
         public void run() {
           browser.getWebBrowser().getContentDOMWindow().scrollByPages(numPages);
         }
       });
 }
예제 #4
0
 @Override
 public void setScrollbarVisibile(final boolean visible) {
   MozillaExecutor.mozSyncExec(
       new Runnable() {
         @Override
         public void run() {
           browser.getWebBrowser().getContentDOMWindow().getScrollbars().setVisible(visible);
         }
       });
 }
예제 #5
0
 @Override
 public int getScrollY() {
   return MozillaExecutor.mozSyncExecQuiet(
       new Callable<Integer>() {
         @Override
         public Integer call() throws Exception {
           return browser.getWebBrowser().getContentDOMWindow().getScrollY();
         }
       });
 }
예제 #6
0
 public BrowserManager buildBrowserManager() {
   JBrowserManager jBrowserManager = new JBrowserManager(this);
   MozillaExecutor.setBrowserMangerInitilized(true);
   return jBrowserManager;
 }