All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.javafx.control.cell.ProgressBarTreeTableCellActions Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package xworker.javafx.control.cell;

import javafx.scene.control.cell.ProgressBarTreeTableCell;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import xworker.javafx.control.TreeTableCellActions;

public class ProgressBarTreeTableCellActions {
    public static void init(ProgressBarTreeTableCell node, Thing thing, ActionContext actionContext){
        TreeTableCellActions.init(node, thing, actionContext);
    }

    public static ProgressBarTreeTableCell create(ActionContext actionContext){
        Thing self = actionContext.getObject("self");
        ProgressBarTreeTableCell node = new ProgressBarTreeTableCell<>();
        init(node, self, actionContext);
        actionContext.g().put(self.getMetadata().getName(), node);

        actionContext.peek().put("parent", node);
        for(Thing child : self.getChilds()){
            child.doAction("create", actionContext);
        }

        return node;
    }
}