All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.marathon.compat.Java8 Maven / Gradle / Ivy

There is a newer version: 5.4.0.0
Show newest version
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