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

com.qspin.qtaste.javaguifx.server.ButtonClicker Maven / Gradle / Ivy

The newest version!
package com.qspin.qtaste.javaguifx.server;

import javafx.scene.control.ButtonBase;

import com.qspin.qtaste.testsuite.QTasteTestFailException;

/**
 * Component controller that simulates a click on an {@link ButtonBase} through the fire method.
 * The arm() method call will be executed in the Event Thread.
 *
 * @author simjan
 */
class ButtonClicker extends UpdateComponentCommander {

    @Override
    protected void prepareActions() throws QTasteTestFailException {
    }

    /**
     * Simulates the click on the button through a call to the fire method.
     */
    @Override
    protected void doActionsInEventThread() {
        ((ButtonBase) component).fire();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy