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

xworker.javafx.control.ProgressBarActions Maven / Gradle / Ivy

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

import org.xmeta.ActionContext;
import org.xmeta.Thing;

import javafx.scene.control.ProgressBar;

public class ProgressBarActions {
	public static void init(ProgressBar p, Thing thing, ActionContext actionContext) {
		ProgressIndicatorActions.init(p, thing, actionContext);
	}
	
	public static ProgressBar create(ActionContext actionContext) {
		Thing self = actionContext.getObject("self");
		
		ProgressBar item = new ProgressBar();
		init(item, self, actionContext);
		actionContext.g().put(self.getMetadata().getName(), item);
		
		actionContext.peek().put("parent", item);
		for(Thing child : self.getChilds()) {
			child.doAction("create", actionContext);			
		}
		
		return item;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy