}
//Action FactType
for ( int iCol = 0; iCol < visibleActionCols.size(); iCol++ ) {
DynamicColumn<BaseColumn> col = visibleActionCols.get( iCol );
ActionCol52 ac = (ActionCol52) col.getModelColumn();
tce = DOM.createTD();
tce.addClassName( resources.headerText() );
tce.addClassName( resources.cellTableColumn( col.getModelColumn() ) );
tce.addClassName( resources.headerRowIntermediate() );
tre.appendChild( tce );
//Make applicable label (TODO move to Factory method)
StringBuilder label = new StringBuilder();
if ( ac instanceof ActionInsertFactCol52 ) {
ActionInsertFactCol52 aifc = (ActionInsertFactCol52) ac;
String factType = aifc.getFactType();
String binding = aifc.getBoundName();
if ( factType != null && factType.length() > 0 ) {
label.append( factType );
if ( binding != null ) {
label.append( " [" + binding + "]" );
}
}
} else if ( ac instanceof ActionSetFieldCol52 ) {
String factType = ( (ActionSetFieldCol52) ac ).getBoundName();
if ( factType != null && factType.length() > 0 ) {
label.append( factType );
}
} else if ( ac instanceof LimitedEntryActionRetractFactCol52 ) {
String factType = ( (LimitedEntryActionRetractFactCol52) ac ).getValue().getStringValue();
if ( factType != null && factType.length() > 0 ) {
label.append( factType );
}
} else if ( ac instanceof ActionWorkItemCol52 ) {
String factType = ( (ActionWorkItemCol52) ac ).getWorkItemDefinition().getDisplayName();
if ( factType != null && factType.length() > 0 ) {
label.append( factType );
}
} else if ( ac instanceof BRLActionVariableColumn ) {
String factType = ( (BRLActionVariableColumn) ac ).getVarName();
if ( factType != null && factType.length() > 0 ) {
label.append( factType );
}
}
tce.appendChild( makeLabel( label.toString(),
col.getWidth(),
( splitter.isCollapsed ? 0 : resources.rowHeaderHeight() ) ) );
}
break;
case 3:
// Condition Fact Fields
for ( DynamicColumn<BaseColumn> col : visibleConditionCols ) {
tce = DOM.createTD();
tce.addClassName( resources.headerText() );
tce.addClassName( resources.headerRowIntermediate() );
tce.addClassName( resources.cellTableColumn( col.getModelColumn() ) );
tre.appendChild( tce );
ConditionCol52 cc = (ConditionCol52) col.getModelColumn();
//Make applicable label (TODO move to Factory method)
StringBuilder label = new StringBuilder();
if ( cc instanceof LimitedEntryBRLConditionColumn ) {
//Nothing needed
} else if ( cc instanceof BRLConditionVariableColumn ) {
BRLConditionVariableColumn brl = (BRLConditionVariableColumn) cc;
String field = brl.getFactField();
label.append( field == null ? "" : field );
} else if ( cc instanceof ConditionCol52 ) {
String factField = cc.getFactField();
if ( factField != null && factField.length() > 0 ) {
label.append( factField );
}
if ( cc.getConstraintValueType() != BaseSingleFieldConstraint.TYPE_PREDICATE ) {
label.append( " [" );
label.append( cc.getOperator() );
String lev = getLimitedEntryValue( cc );
if ( lev != null ) {
label.append( lev );
}
label.append( "]" );
}
}
tce.appendChild( makeLabel( label.toString(),
col.getWidth(),
( splitter.isCollapsed ? 0 : resources.rowHeaderHeight() ) ) );
}
// Action Fact Fields
for ( DynamicColumn<BaseColumn> col : visibleActionCols ) {
tce = DOM.createTD();
tce.addClassName( resources.headerText() );
tce.addClassName( resources.headerRowIntermediate() );
tce.addClassName( resources.cellTableColumn( col.getModelColumn() ) );
tre.appendChild( tce );
ActionCol52 ac = (ActionCol52) col.getModelColumn();
//Make applicable label (TODO move to Factory method)
StringBuilder label = new StringBuilder();
if ( ac instanceof ActionInsertFactCol52 ) {
ActionInsertFactCol52 aifc = (ActionInsertFactCol52) ac;