xworker.javafx.beans.property.SimpleMapPropertyActions Maven / Gradle / Ivy
package xworker.javafx.beans.property;
import javafx.beans.property.MapProperty;
import javafx.beans.property.Property;
import javafx.beans.property.SimpleMapProperty;
import javafx.beans.value.ObservableMapValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableMap;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import java.util.HashMap;
import java.util.Map;
public class SimpleMapPropertyActions {
public static SimpleMapProperty create(ActionContext actionContext){
Thing self = actionContext.getObject("self");
Object bean = self.doAction("getBean", actionContext);
String name = self.getMetadata().getName();
Object value = self.doAction("getInitialValue", actionContext);
ObservableMap