xworker.javafx.beans.property.SimpleSetPropertyActions Maven / Gradle / Ivy
package xworker.javafx.beans.property;
import javafx.beans.property.Property;
import javafx.beans.property.SetProperty;
import javafx.beans.property.SimpleSetProperty;
import javafx.beans.value.ObservableSetValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableSet;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import java.util.HashSet;
import java.util.Set;
public class SimpleSetPropertyActions {
public static SimpleSetProperty 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);
ObservableSet