Ignore:
Timestamp:
02/04/14 16:20:02 (10 years ago)
Author:
ngw8
Message:

Added overlay to browser that shows while the page is converting. Started styling JFX elements of browser a little bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/WebParser.java

    r816 r824  
    4848import org.expeditee.items.Picture;
    4949import org.expeditee.items.Text;
     50import org.expeditee.items.widgets.JfxBrowser;
    5051import org.w3c.dom.Node;
    5152import org.w3c.dom.html.HTMLBodyElement;
     
    281282         *            The Expeditee frame to output the converted page to
    282283         */
    283         public static void parsePageSimple(final WebEngine webEngine, final WebView webView, final Frame frame) {
     284        public static void parsePageSimple(JfxBrowser browserWidget, final WebEngine webEngine, final WebView webView, final Frame frame) {
    284285                try {
     286                        browserWidget.setOverlayVisible(true);
     287
    285288                        final Object notifier = new Object();
    286289                       
     
    633636                }
    634637
    635 
     638                browserWidget.setOverlayVisible(false);
    636639
    637640        }
     
    11791182                        bounds = (JSObject) ((JSObject) currentNode.getParentNode()).call("getBoundingClientRect", new Object[] {});
    11801183
    1181                         // TODO: This doesn't check if an element or any of its parent elements have position:fixed set - the only way to check seems to be to walking through the element's parents until the document root is reached (or a recursive function)
     1184                        // TODO: This doesn't check if an element or any of its parent elements have position:fixed set - the only way to check seems to
     1185                        // be to walking through the element's parents until the document root is reached (or a recursive function)
    11821186                        float x = Float.valueOf(bounds.getMember("left").toString());
    11831187                        float y = Float.valueOf(bounds.getMember("top").toString());
Note: See TracChangeset for help on using the changeset viewer.