com.sun.webkit.EventLoop Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openjfx-78-backport Show documentation
Show all versions of openjfx-78-backport Show documentation
This is a backport of OpenJFX 8 to run on Java 7.
The newest version!
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
*/
package com.sun.webkit;
import java.util.logging.Level;
import java.util.logging.Logger;
public abstract class EventLoop {
private static final Logger logger =
Logger.getLogger(EventLoop.class.getName());
private static EventLoop instance;
public static void setEventLoop(EventLoop eventLoop) {
instance = eventLoop;
}
private static void fwkCycle() {
logger.log(Level.FINE, "Executing event loop cycle");
instance.cycle();
}
protected abstract void cycle();
}