use of com.centurylink.mdw.plugin.designer.properties.editor.ValueChangeListener in project mdw-designer by CenturyLinkCloud.
the class EmbeddedSubProcessSection method drawWidgets.
public void drawWidgets(Composite composite, WorkflowElement selection) {
embeddedSubProcess = (EmbeddedSubProcess) selection;
// id text field
idPropertyEditor = new PropertyEditor(embeddedSubProcess, PropertyEditor.TYPE_TEXT);
idPropertyEditor.setLabel("ID");
idPropertyEditor.setWidth(150);
idPropertyEditor.setReadOnly(true);
idPropertyEditor.render(composite);
// name text field
namePropertyEditor = new PropertyEditor(embeddedSubProcess, PropertyEditor.TYPE_TEXT);
namePropertyEditor.setLabel("Name");
namePropertyEditor.addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
embeddedSubProcess.setName((String) newValue);
}
});
namePropertyEditor.render(composite);
// description text area
descriptionPropertyEditor = new PropertyEditor(embeddedSubProcess, PropertyEditor.TYPE_TEXT);
descriptionPropertyEditor.setLabel("Description");
descriptionPropertyEditor.setHeight(100);
descriptionPropertyEditor.addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
embeddedSubProcess.setDescription((String) newValue);
}
});
descriptionPropertyEditor.render(composite);
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ValueChangeListener in project mdw-designer by CenturyLinkCloud.
the class ExpressionSection method drawWidgets.
public void drawWidgets(Composite composite, WorkflowElement selection) {
activity = (Activity) selection;
// language combo
languagePropertyEditor = new PropertyEditor(activity, PropertyEditor.TYPE_COMBO);
languagePropertyEditor.setLabel("Language");
languagePropertyEditor.setReadOnly(true);
languagePropertyEditor.setWidth(150);
languagePropertyEditor.setValueOptions(activity.getScriptLanguages());
languagePropertyEditor.addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
activity.setScriptLanguage((String) newValue);
}
});
languagePropertyEditor.render(composite);
// expression editor
expressionPropertyEditor = new PropertyEditor(activity, PropertyEditor.TYPE_TEXT);
expressionPropertyEditor.setLabel("Expression");
expressionPropertyEditor.setWidth(400);
expressionPropertyEditor.addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
activity.setAttribute("Expression", (String) newValue);
}
});
expressionPropertyEditor.render(composite);
// help link
helpPropertyEditor = new PropertyEditor(activity, PropertyEditor.TYPE_LINK);
helpPropertyEditor.setLabel("Expression Activity Help");
helpPropertyEditor.render(composite);
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ValueChangeListener in project mdw-designer by CenturyLinkCloud.
the class PreferencesSection method drawWidgets.
public void drawWidgets(Composite composite, WorkflowElement selection) {
project = (WorkflowProject) selection;
createNoticesTable();
noticesEditor.render(composite, false);
intervalEditor = new PropertyEditor(selection, PropertyEditor.TYPE_SPINNER);
intervalEditor.setLabel("Check Interval (mins)");
intervalEditor.setWidth(50);
intervalEditor.addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
project.setNoticeCheckInterval(Integer.parseInt((String) newValue));
}
});
intervalEditor.render(composite);
intervalEditor.setMinValue(1);
intervalEditor.setMaxValue(60);
intervalEditor.setElement(project);
intervalEditor.setValue(project.getNoticeCheckInterval());
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ValueChangeListener in project mdw-designer by CenturyLinkCloud.
the class JavaSection method drawWidgets.
public void drawWidgets(Composite composite, WorkflowElement selection) {
activity = (Activity) selection;
// artifact editor
artifactEditor = new ArtifactEditor(activity, new JavaEditorValueProvider(activity), null);
artifactEditor.render(composite);
// output docs
outputDocsPropertyEditor = new PropertyEditor(activity, PropertyEditor.TYPE_PICKLIST);
outputDocsPropertyEditor.setLabel("Documents:Read-Only~Writable");
outputDocsPropertyEditor.setValueOptions(activity.getProcess().getDocRefVariableNames());
outputDocsPropertyEditor.addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
activity.setAttribute("Output Documents", (String) newValue);
}
});
outputDocsPropertyEditor.render(composite);
outputDocsPropertyEditor.setVisible(activity.canWriteOutputDocs());
// help link
helpPropertyEditor = new PropertyEditor(activity, PropertyEditor.TYPE_LINK);
helpPropertyEditor.setLabel("Dynamic Java Activity Help");
helpPropertyEditor.render(composite);
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ValueChangeListener in project mdw-designer by CenturyLinkCloud.
the class NoteSection method drawWidgets.
public void drawWidgets(Composite composite, WorkflowElement selection) {
note = (Note) selection;
// content text area
contentEditor = new PropertyEditor(note, PropertyEditor.TYPE_TEXT);
contentEditor.setLabel("Note");
contentEditor.setWidth(475);
contentEditor.setHeight(100);
contentEditor.setMultiLine(true);
contentEditor.addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
note.setText((String) newValue);
note.adjustSize();
}
});
contentEditor.render(composite);
}
Aggregations