Examples of TimerDuration


Examples of org.jbpm.ui.util.TimerDuration

    private Text unitField;
   
    public DurationEditDialog(ProcessDefinition definition, TimerDuration duration) {
        super(Display.getCurrent().getActiveShell());
        this.definition = definition;
        editable = new TimerDuration(duration != null ? duration.getDuration() : TimerDuration.EMPTY);
    }
View Full Code Here

Examples of org.jbpm.ui.util.TimerDuration

        }
        delayField.setText(editable.getDelay());
        unitField.setText(editable.getUnit().toString());
        boolean valid = false;
        try {
            new TimerDuration(editable.getDuration());
            valid = true;
        } catch (Throwable th) {
        }
        getButton(IDialogConstants.OK_ID).setEnabled(valid);
    }
View Full Code Here

Examples of org.jbpm.ui.util.TimerDuration

        this.duration = duration;
        firePropertyChange(PROPERTY_TIMER_DURATION, null, null);
    }
   
    public void setDueDate(String dueDate) {
        setDuration(new TimerDuration(dueDate));
    }
View Full Code Here

Examples of org.jbpm.ui.util.TimerDuration

        this.duration = duration;
        firePropertyChange(PROPERTY_TIMER_DURATION, null, null);
    }
   
    public void setDueDate(String dueDate) {
        setDuration(new TimerDuration(dueDate));
    }
View Full Code Here

Examples of org.jbpm.ui.util.TimerDuration

        return definition;
    }
   
    public void setRepeat(String repeat) {
        if (repeat != null) {
            this.repeat = new TimerDuration(repeat);
        }
    }
View Full Code Here

Examples of org.jbpm.ui.util.TimerDuration

            button.setText("...");
            button.addSelectionListener(new SelectionAdapter() {
                @Override
                public void widgetSelected(SelectionEvent e) {
                    DurationEditDialog dialog = new DurationEditDialog(definition, editable.getRepeat());
                    TimerDuration duration = (TimerDuration) dialog.openDialog();
                    if (duration != null) {
                        editable.setRepeat(duration.getDuration());
                        updateGUI();
                    }
                }
            });
        }
View Full Code Here

Examples of org.jbpm.ui.util.TimerDuration

    }

    @Override
    public List<Change> getChanges() throws Exception {
        List<Change> changes = new ArrayList<Change>();
        TimerDuration duration = timed.getDuration();
        if (duration != null && variableName.equals(duration.getVariableName())) {
            changes.add(new TimedChange());
        }
        return changes;
    }
View Full Code Here

Examples of org.jbpm.ui.util.TimerDuration

            return new NullChange("ITimed");
        }
       
        private String toXmlPreviewContent(String varName) {
            StringBuffer buffer = new StringBuffer();
            TimerDuration durationTmp = new TimerDuration(timed.getDuration().getDuration());
            durationTmp.setVariableName(varName);
            buffer.append(durationTmp.getDuration());
            return buffer.toString();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.