JavaFX/Classes/css/core/Context.java

21 lines
406 B
Java
Raw Normal View History

2017-11-15 13:23:13 +00:00
package Classes.css.core;
import java.util.HashMap;
public class Context{
/* Context data (associative array) */
private static HashMap<String, Object> attr = new HashMap<String, Object>();
/* Add data */
public static void bind(String index, Object data){
Context.attr.put(index, data);
}
/* Fetch data */
public static Object get(String index){
return Context.attr.get(index);
}
}