Package javafx.scene.web

Examples of javafx.scene.web.WebHistory


        public void actionPerformed(ActionEvent e) {
            if (webEngine == null) {
                return;
            }
            final WebHistory history = webEngine.getHistory();
            if (history.getCurrentIndex() == 0) {
                Toolkit.getDefaultToolkit().beep();
            } else {
                Platform.runLater(new Runnable() {
                    @Override
                    public void run() {
                        history.go(-1);
                    }
                });
            }
        }
View Full Code Here


        public void actionPerformed(ActionEvent e) {
            if (webEngine == null) {
                return;
            }
            final WebHistory history = webEngine.getHistory();
            if (history.getCurrentIndex() >= history.getEntries().size() - 1) {
                Toolkit.getDefaultToolkit().beep();
            } else {
                Platform.runLater(new Runnable() {
                    @Override
                    public void run() {
                        history.go(1);
                    }
                });
            }
        }
View Full Code Here

TOP

Related Classes of javafx.scene.web.WebHistory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.