xworker.javafx.beans.property.SimpleListPropertyActions Maven / Gradle / Ivy
package xworker.javafx.beans.property;
import javafx.beans.property.ListProperty;
import javafx.beans.property.Property;
import javafx.beans.property.SimpleListProperty;
import javafx.beans.value.ObservableListValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import javax.swing.*;
import java.util.ArrayList;
import java.util.List;
public class SimpleListPropertyActions {
public static SimpleListProperty 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);;
ObservableList