Package org.jrebirth.af.core.concurrent

Examples of org.jrebirth.af.core.concurrent.AbstractJrbRunnable


     * @param messageProperty the message presenter
     */
    private void bindMessage(final ServiceTask<?> task, final StringProperty messageProperty) {

        // Perform this binding into the JAT to respect widget and task API
        JRebirth.runIntoJAT(new AbstractJrbRunnable("Bind Message for " + task.getServiceHandlerName()) {

            /**
             * {@inheritDoc}
             */
            @Override
View Full Code Here


    public void updateProgress(final Wave wave, final long workDone, final long totalWork, final double progressIncrement) {

        if (wave.get(JRebirthWaves.SERVICE_TASK).checkProgressRatio(workDone, totalWork, progressIncrement)) {

            // Increase the task progression
            JRebirth.runIntoJAT(new AbstractJrbRunnable("ServiceTask Workdone (lng) " + workDone + RATIO_SEPARATOR + totalWork + "[" + workDone * 100 / totalWork + "%]") {

                /**
                 * {@inheritDoc}
                 */
                @Override
View Full Code Here

    public void updateProgress(final Wave wave, final double workDone, final double totalWork, final double progressIncrement) {

        if (wave.get(JRebirthWaves.SERVICE_TASK).checkProgressRatio(workDone, totalWork, progressIncrement)) {

            // Increase the task progression
            JRebirth.runIntoJAT(new AbstractJrbRunnable("ServiceTask Workdone (dbl) " + workDone + RATIO_SEPARATOR + totalWork) {

                /**
                 * {@inheritDoc}
                 */
                @Override
View Full Code Here

     * @param message the current message of the service task processed
     */
    public void updateMessage(final Wave wave, final String message) {

        // Update the current task message
        JRebirth.runIntoJAT(new AbstractJrbRunnable("Service Task Message => " + message) {

            /**
             * {@inheritDoc}
             */
            @Override
View Full Code Here

     * @param title the title of the service task processed
     */
    public void updateTitle(final Wave wave, final String title) {

        // Update the task title
        JRebirth.runIntoJAT(new AbstractJrbRunnable("Service Task Title => " + title) {

            /**
             * {@inheritDoc}
             */
            @Override
View Full Code Here

    // @Test
    public void testJAT() {

        final AtomicBoolean ok = new AtomicBoolean(false);

        JRebirth.runIntoJAT(new AbstractJrbRunnable("Jat test") {

            @Override
            protected void runInto() throws JRebirthThreadException {
                LOGGER.info("Running into " + Thread.currentThread().getName());
                ok.set(JRebirth.isJAT());
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.concurrent.AbstractJrbRunnable

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.