javafx.scene.web.WebHistory.Entry Java Examples

The following examples show how to use javafx.scene.web.WebHistory.Entry. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BrowserJFX.java    From mars-sim with GNU General Public License v3.0 5 votes vote down vote up
public String getCurrentURL() {
  //history = engine.getHistory();
  ObservableList<WebHistory.Entry> entryList = history.getEntries();
  int currentIndex = history.getCurrentIndex();
  String txt = null;
  if (currentIndex >=0 ) {
  	txt = entryList.get(currentIndex).getUrl();
  }
  return txt;
}