use of com.centurylink.mdw.plugin.designer.properties.editor.ColumnSpec in project mdw-designer by CenturyLinkCloud.
the class ProcessInstanceListView method createColumnSpecs.
private List<ColumnSpec> createColumnSpecs() {
List<ColumnSpec> colSpecs = new ArrayList<>();
ColumnSpec processInstColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Instance ID", "id");
processInstColSpec.width = 100;
colSpecs.add(processInstColSpec);
ColumnSpec masterRequestColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Master Request ID", "masterRequestId");
masterRequestColSpec.width = 180;
colSpecs.add(masterRequestColSpec);
ColumnSpec ownerColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Owner", "owner");
ownerColSpec.width = 100;
colSpecs.add(ownerColSpec);
ColumnSpec ownerIdColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Owner ID", "ownerId");
ownerIdColSpec.width = 100;
colSpecs.add(ownerIdColSpec);
ColumnSpec statusColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Status", "statusCode");
statusColSpec.width = 100;
colSpecs.add(statusColSpec);
ColumnSpec startDateColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Start", "startDate");
startDateColSpec.width = 150;
colSpecs.add(startDateColSpec);
ColumnSpec endDateColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "End", "endDate");
endDateColSpec.width = 150;
colSpecs.add(endDateColSpec);
columnProps = new String[colSpecs.size()];
for (int i = 0; i < colSpecs.size(); i++) {
columnProps[i] = colSpecs.get(i).property;
}
return colSpecs;
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ColumnSpec in project mdw-designer by CenturyLinkCloud.
the class ExtensionModulesTable method create.
public TableEditor create() {
tableEditor = new TableEditor(null, TableEditor.TYPE_TABLE);
// colspecs
List<ColumnSpec> colSpecs = new ArrayList<ColumnSpec>();
ColumnSpec selectionColSpec = new ColumnSpec(PropertyEditor.TYPE_CHECKBOX, "", "import");
selectionColSpec.width = 80;
colSpecs.add(selectionColSpec);
ColumnSpec extensionColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Extension", "extension");
extensionColSpec.width = 150;
extensionColSpec.readOnly = true;
colSpecs.add(extensionColSpec);
ColumnSpec descriptionColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Description", "description");
descriptionColSpec.readOnly = true;
descriptionColSpec.width = 350;
colSpecs.add(descriptionColSpec);
tableEditor.setColumnSpecs(colSpecs);
tableEditor.setFillWidth(true);
tableEditor.setModelUpdater(new TableModelUpdater() {
public Object create() {
return null;
}
@SuppressWarnings("rawtypes")
public void updateModelValue(List tableValue) {
selectedModules = new ArrayList<ExtensionModule>();
for (ExtensionModule module : WorkflowProjectManager.getInstance().getAvailableExtensions(workflowProject)) {
for (Object rowObj : tableValue) {
DefaultRowImpl row = (DefaultRowImpl) rowObj;
if (module.getName().equals(row.getColumnValue(1))) {
if (((Boolean) row.getColumnValue(0)).booleanValue())
selectedModules.add(module);
else
selectedModules.remove(module);
}
}
}
}
});
return tableEditor;
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ColumnSpec in project mdw-designer by CenturyLinkCloud.
the class LoadTestLaunchTab method createColumnSpecs.
protected void createColumnSpecs() {
super.createColumnSpecs();
ColumnSpec testCaseRunColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Count", "count");
testCaseRunColSpec.width = 50;
testCaseRunColSpec.readOnly = false;
testCasesColumnSpecs.add(testCaseRunColSpec);
testCasesColumnProps = new String[testCasesColumnSpecs.size()];
for (int i = 0; i < testCasesColumnSpecs.size(); i++) {
testCasesColumnProps[i] = testCasesColumnSpecs.get(i).property;
}
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ColumnSpec in project mdw-designer by CenturyLinkCloud.
the class TestSuiteLaunchTab method createColumnSpecs.
protected void createColumnSpecs() {
testCasesColumnSpecs = new ArrayList<ColumnSpec>();
ColumnSpec selectionColSpec = new ColumnSpec(PropertyEditor.TYPE_CHECKBOX, "", "run");
selectionColSpec.width = 28;
testCasesColumnSpecs.add(selectionColSpec);
ColumnSpec testCaseColSpec = new ColumnSpec(PropertyEditor.TYPE_TEXT, "Test Case", "testCase");
testCaseColSpec.width = 500;
testCaseColSpec.readOnly = true;
testCasesColumnSpecs.add(testCaseColSpec);
testCasesColumnProps = new String[testCasesColumnSpecs.size()];
for (int i = 0; i < testCasesColumnSpecs.size(); i++) testCasesColumnProps[i] = testCasesColumnSpecs.get(i).property;
}
use of com.centurylink.mdw.plugin.designer.properties.editor.ColumnSpec in project mdw-designer by CenturyLinkCloud.
the class TestSuiteLaunchTab method createTableViewer.
protected void createTableViewer() {
testCasesTableViewer = new TableViewer(testCasesTable);
testCasesTableViewer.setUseHashlookup(true);
testCasesTableViewer.setColumnProperties(testCasesColumnProps);
CellEditor[] editors = new CellEditor[testCasesColumnSpecs.size()];
for (int i = 0; i < testCasesColumnSpecs.size(); i++) {
ColumnSpec colSpec = testCasesColumnSpecs.get(i);
CellEditor cellEditor = null;
if (colSpec.type.equals(PropertyEditor.TYPE_TEXT)) {
cellEditor = new TextCellEditor(testCasesTable);
} else if (colSpec.type.equals(PropertyEditor.TYPE_CHECKBOX)) {
cellEditor = new CheckboxCellEditor(testCasesTable);
}
editors[i] = cellEditor;
}
testCasesTableViewer.setCellEditors(editors);
testCasesTableViewer.setCellModifier(new TestCaseCellModifier());
testCasesTableViewer.setLabelProvider(new TestCaseLabelProvider());
testCasesTableViewer.setContentProvider(new TestCaseContentProvider());
}
Aggregations