use of org.uberfire.ext.wires.core.grids.client.model.impl.BaseHeaderMetaData in project drools-wb by kiegroup.
the class ActionInsertFactColumnConverter method makeHeaderMetaData.
@Override
public List<GridColumn.HeaderMetaData> makeHeaderMetaData(final BaseColumn column) {
return new ArrayList<GridColumn.HeaderMetaData>() {
{
if (column instanceof ActionInsertFactCol52) {
ActionInsertFactCol52 actionInsertFactColumn = (ActionInsertFactCol52) column;
StringBuilder headerFirstRow = new StringBuilder();
if (actionInsertFactColumn.getBoundName() != null && !actionInsertFactColumn.getBoundName().isEmpty()) {
headerFirstRow.append(actionInsertFactColumn.getBoundName()).append(" : ");
}
headerFirstRow.append(actionInsertFactColumn.getFactType());
add(new BaseHeaderMetaData(headerFirstRow.toString(), ActionCol52.class.getName()));
add(new BaseHeaderMetaData(column.getHeader(), headerFirstRow.toString()));
} else {
add(new BaseHeaderMetaData(column.getHeader(), ActionCol52.class.getName()));
}
}
};
}
use of org.uberfire.ext.wires.core.grids.client.model.impl.BaseHeaderMetaData in project drools-wb by kiegroup.
the class ActionSetFieldColumnConverter method makeHeaderMetaData.
@Override
public List<GridColumn.HeaderMetaData> makeHeaderMetaData(final BaseColumn column) {
return new ArrayList<GridColumn.HeaderMetaData>() {
{
if (column instanceof ActionSetFieldCol52) {
ActionSetFieldCol52 actionSetFieldColumn = (ActionSetFieldCol52) column;
if (actionSetFieldColumn.getBoundName() != null && !actionSetFieldColumn.getBoundName().isEmpty()) {
add(new BaseHeaderMetaData(actionSetFieldColumn.getBoundName(), ActionCol52.class.getName()));
add(new BaseHeaderMetaData(column.getHeader(), actionSetFieldColumn.getBoundName()));
}
} else {
add(new BaseHeaderMetaData(column.getHeader(), ActionCol52.class.getName()));
}
}
};
}
use of org.uberfire.ext.wires.core.grids.client.model.impl.BaseHeaderMetaData in project drools-wb by kiegroup.
the class ActionWorkItemExecuteColumnConverter method makeHeaderMetaData.
@Override
public List<GridColumn.HeaderMetaData> makeHeaderMetaData(final BaseColumn column) {
final PortableWorkDefinition pwd = ((ActionWorkItemCol52) column).getWorkItemDefinition();
final String workItemName = pwd == null ? column.getHeader() : pwd.getName();
return new ArrayList<GridColumn.HeaderMetaData>() {
{
add(new BaseHeaderMetaData(workItemName, ActionCol52.class.getName()));
add(new BaseHeaderMetaData(column.getHeader(), workItemName + "-exec"));
}
};
}
Aggregations