private boolean unique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
protected boolean isHeaderUnique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
protected boolean isHeaderUnique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
private boolean unique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
private boolean unique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
private boolean unique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
private boolean unique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
private boolean unique( String header ) { for ( ActionCol52 o : model.getActionCols() ) { if ( o.getHeader().equals( header ) ) { return false; } } return true; }
@Override public void makeResult( final GuidedDecisionTable52 model ) { //Copy actions to decision table model. Assertion of bindings occurs in FactPatternsPage for ( Map.Entry<Pattern52, List<ActionSetFieldCol52>> ps : patternToActionsMap.entrySet() ) { final Pattern52 p = ps.getKey(); //Patterns with no conditions don't get created if ( p.getChildColumns().size() > 0 ) { final String binding = p.getBoundName(); for ( ActionSetFieldCol52 a : ps.getValue() ) { a.setBoundName( binding ); model.getActionCols().add( a ); } } } }
private void setupColumnsNote() { configureColumnsNote.setVisible( model.getAttributeCols().size() == 0 && model.getConditionsCount() == 0 && model.getActionCols().size() == 0 ); }
private void addActionColumns() { for ( ActionCol52 a : model.getActionCols() ) { if ( a instanceof ActionSetFieldCol52 ) { ActionSetFieldCol52 afc = (ActionSetFieldCol52) a; addColumn( afc ); } else if ( a instanceof ActionInsertFactCol52 ) { ActionInsertFactCol52 aif = (ActionInsertFactCol52) a; addColumn( aif ); } } }
public void onDragEnd( DragEndEvent event ) { endIndex = actionsPanel.getWidgetIndex( event.getContext().draggable ); if ( endIndex == startIndex ) { return; } ActionCol52 actionBeingMoved = dtableModel.getActionCols().get( startIndex ); dtableWidget.moveAction( actionBeingMoved, endIndex ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( ActionCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); model.getActionCols().remove( modelColumn ); deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( LimitedEntryBRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } int index = model.getExpandedColumns().indexOf( modelColumn ); model.getActionCols().remove( modelColumn ); deleteColumn( index, true ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( BRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getActionCols().add( modelColumn ); addBRLActionVariableColumns( modelColumn.getChildColumns(), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Delete the given column * @param modelColumn */ public void deleteColumn( BRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } BRLActionVariableColumn firstColumn = modelColumn.getChildColumns().get( 0 ); int firstColumnIndex = model.getExpandedColumns().indexOf( firstColumn ); int numberOfColumns = modelColumn.getChildColumns().size(); deleteColumns( firstColumnIndex, numberOfColumns, true ); model.getActionCols().remove( modelColumn ); //Log deletion of column model.getAuditLog().add( new DeleteColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( LimitedEntryBRLActionColumn modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getActionCols().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
/** * Add a column to the table. * @param modelColumn The Decision Table column to insert */ public void addColumn( ActionCol52 modelColumn ) { if ( modelColumn == null ) { throw new IllegalArgumentException( "modelColumn cannot be null." ); } model.getActionCols().add( modelColumn ); addColumn( modelColumn, cellValueFactory.makeColumnData( modelColumn ), true ); //Log addition of column model.getAuditLog().add( new InsertColumnAuditLogEntry( identity.getName(), modelColumn ) ); }
private ListBox loadPatterns() { Set<String> vars = new HashSet<String>(); ListBox patterns = new ListBox(); for ( Object o : model.getActionCols() ) { ActionCol52 col = (ActionCol52) o; if ( col instanceof ActionInsertFactCol52 ) { ActionInsertFactCol52 c = (ActionInsertFactCol52) col; if ( !vars.contains( c.getBoundName() ) ) { patterns.addItem( c.getFactType() + " [" + c.getBoundName() + "]", c.getFactType() + " " + c.getBoundName() ); vars.add( c.getBoundName() ); } } } return patterns; }
private ListBox loadPatterns() { Set<String> vars = new HashSet<String>(); ListBox patterns = new ListBox(); for ( Object o : model.getActionCols() ) { ActionCol52 col = (ActionCol52) o; if ( col instanceof ActionInsertFactCol52 ) { ActionInsertFactCol52 c = (ActionInsertFactCol52) col; if ( !vars.contains( c.getBoundName() ) ) { patterns.addItem( c.getFactType() + " [" + c.getBoundName() + "]", c.getFactType() + " " + c.getBoundName() ); vars.add( c.getBoundName() ); } } } return patterns; }