![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.marathon.compat.Java8 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marathon-javafx-agent Show documentation
Show all versions of marathon-javafx-agent Show documentation
Marathon JavaDriver agent for Java/FX applications
package net.sourceforge.marathon.compat;
import java.util.Iterator;
import com.sun.javafx.stage.StageHelper;
import javafx.collections.ObservableList;
import javafx.scene.image.Image;
import javafx.scene.input.KeyCode;
import javafx.stage.Stage;
import javafx.stage.Window;
public class Java8 {
private static ObservableList stages;
public static ObservableList getStages() {
if (stages == null)
stages = StageHelper.getStages();
return stages;
}
@SuppressWarnings("deprecation")
public static Iterator getWindows() {
return Window.impl_getWindows();
}
@SuppressWarnings("deprecation")
public static String getChar(KeyCode keyCode) {
return keyCode.impl_getChar();
}
@SuppressWarnings("deprecation")
public static int getCode(KeyCode keyCode) {
return keyCode.impl_getCode();
}
@SuppressWarnings("deprecation")
public static String getUrl(Image image) {
return image.impl_getUrl();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy