Updated classes.css
This commit is contained in:
parent
f06377004a
commit
f4a549e960
|
@ -0,0 +1,20 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -65,7 +65,7 @@ public class Ruleset {
|
||||||
|
|
||||||
/* (x) If nothing custom -> suppose java fx rule */
|
/* (x) If nothing custom -> suppose java fx rule */
|
||||||
else
|
else
|
||||||
new_rule = (Rule) new JavaFX(l_side, (String) r_side[0]);
|
new_rule = (Rule) new JavaFX(l_side, r_side[0].toString());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue