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

de.rpgframework.jfx.attach.PDFViewerConfig Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package de.rpgframework.jfx.attach;

import java.util.function.BiFunction;

/**
 * @author prelle
 *
 */
public class PDFViewerConfig {
	
	public static class PathAndOffset {
		public String path;
		public int offset;
		public PathAndOffset(String path, int offset) {
			this.path = path;
			this.offset = offset;
		}
	}

	private static BiFunction pathResolver;
	private static boolean enabled = false;
	
	//-------------------------------------------------------------------
	public static void setPDFPathResolver(BiFunction resolver) {
		PDFViewerConfig.pathResolver = resolver;
	}
	
	//-------------------------------------------------------------------
	public static BiFunction getPDFPathResolver() {
		return pathResolver;
	}

	//-------------------------------------------------------------------
	public static void setEnabled(boolean value) {
		PDFViewerConfig.enabled = value;
	}

	//-------------------------------------------------------------------
	public static boolean isEnabled() {
		return PDFViewerConfig.enabled;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy