private SmallLabel makeColumnLabel( AttributeCol52 ac ) { SmallLabel label = new SmallLabel( ac.getAttribute() ); setColumnLabelStyleWhenHidden( label, ac.isHideColumn() ); return label; }
/** * Update values controlled by the decision table itself */ public void updateSystemControlledColumnValues() { for ( BaseColumn column : model.getExpandedColumns() ) { if ( column instanceof RowNumberCol52 ) { updateRowNumberColumnValues( column ); } else if ( column instanceof AttributeCol52 ) { // Update Salience values AttributeCol52 attrCol = (AttributeCol52) column; if ( attrCol.getAttribute().equals( RuleAttributeWidget.SALIENCE_ATTR ) ) { updateSalienceColumnValues( attrCol ); } } } }
public void onClick( ClickEvent w ) { String ms = Constants.INSTANCE.DeleteActionColumnWarning( at.getAttribute() ); if ( Window.confirm( ms ) ) { dtable.deleteColumn( at ); refreshAttributeWidget(); } } } );
/** * Make a Model cell for the given column * @param column * @return */ @Override public DTCellValue52 makeModelCellValue( BaseColumn column ) { DataType.DataTypes dataType = utilities.getDataType( column ); DTCellValue52 dcv = null; if ( column instanceof LimitedEntryCol ) { dcv = new DTCellValue52( Boolean.FALSE ); } else if ( column instanceof AttributeCol52 ) { AttributeCol52 ac = (AttributeCol52) column; if ( ac.getAttribute().equals( RuleAttributeWidget.DIALECT_ATTR ) ) { dcv = new DTCellValue52( RuleAttributeWidget.DEFAULT_DIALECT ); } else { dcv = new DTCellValue52( column.getDefaultValue() ); } } else { dcv = new DTCellValue52( column.getDefaultValue() ); } utilities.assertDTCellValue( dataType, dcv ); return dcv; }
String attrName = attrCol.getAttribute(); if ( attrName.equals( RuleAttributeWidget.SALIENCE_ATTR ) ) { if ( attrCol.isUseRowNumber() ) {
if ( column instanceof AttributeCol52 ) { AttributeCol52 at = (AttributeCol52) column; if ( at.getAttribute().equals( RuleAttributeWidget.SALIENCE_ATTR ) ) { if ( at.isUseRowNumber() ) { cell = makeNewRowNumberCellValue( (Long) dcv.getNumericValue() ); if ( column instanceof AttributeCol52 ) { AttributeCol52 ac = (AttributeCol52) column; if ( ac.getAttribute().equals( RuleAttributeWidget.DIALECT_ATTR ) ) { cell = makeNewDialectCellValue( dcv.getStringValue() );
tsdt.getAttributeCols().size() ); assertEquals( "salience", tsdt.getAttributeCols().get( 0 ).getAttribute() ); assertEquals( "66", tsdt.getAttributeCols().get( 0 ).getDefaultValue().getStringValue() );
tce.addClassName( resources.cellTableColumn( modelCol ) ); } else if ( modelCol instanceof AttributeCol52 ) { tce.appendChild( makeLabel( ( (AttributeCol52) modelCol ).getAttribute(), width, resources.rowHeaderHeight() ) );
tsdt.getAttributeCols().size() ); assertEquals( "salience", tsdt.getAttributeCols().get( 0 ).getAttribute() ); assertEquals( "66", tsdt.getAttributeCols().get( 0 ).getDefaultValue().getStringValue() );
if ( at.getAttribute().equals( RuleAttributeWidget.SALIENCE_ATTR ) ) { hp.add( new HTML( " " ) ); final CheckBox useRowNumber = new CheckBox( Constants.INSTANCE.UseRowNumber() );