/** Deletes all Items on the Board */ public void clear() { ItemComponent[] items = board.getItems(); DeleteCommand del = new DeleteCommand(items); ArrayList<Command> actCommands = new ArrayList<Command>(); actCommands.add(del); tbe.addCommands(actCommands); board.removeItem(items); }
/** Selects all Items of the Board */ public void selectAllItems() { board.setSelectionCells(board.getItems()); }