Package org.wicketstuff.async.task

Examples of org.wicketstuff.async.task.AbstractTaskContainer


        // Create form
        Form<?> form = new Form<Void>("form");

        // Create model of task
        AbstractTaskContainer taskContainer = DefaultTaskManager.getInstance().makeContainer(1000L, TimeUnit.MINUTES);

        // Create a progress button.
        ProgressButton progressButton = new ProgressButton("button", form, Model.of(taskContainer), this, Duration.milliseconds(500L));

        progressButton.registerMessageModel(Model.of("Start"), InteractionState.STARTABLE, InteractionState.RESTARTABLE);
View Full Code Here


    private boolean taskStart, taskSuccess, taskCancel, taskError;

    public TestPage() {

        AbstractTaskContainer taskContainer = DefaultTaskManager.getInstance().makeContainer(5L, TimeUnit.MINUTES);

        form = new Form<Void>("form");
        button = new ProgressButton("button", form, Model.of(taskContainer), this, Duration.milliseconds(300L)) {
            @Override
            protected void onTaskStart(AjaxRequestTarget ajaxRequestTarget) {
View Full Code Here

TOP

Related Classes of org.wicketstuff.async.task.AbstractTaskContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.