Package org.jbpm.ui.util

Examples of org.jbpm.ui.util.TimerDuration$Unit


    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


        }
        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

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

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

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

            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

    }

    @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

            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

Related Classes of org.jbpm.ui.util.TimerDuration$Unit

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.